From 3fe3776b32bbfc56ccc005b18ca223113ce0fd13 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 10 Oct 2017 16:01:01 +0300 Subject: [PATCH] In clippy we trust! --- hammond-downloader/src/downloader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hammond-downloader/src/downloader.rs b/hammond-downloader/src/downloader.rs index 40d0055..b311b4a 100644 --- a/hammond-downloader/src/downloader.rs +++ b/hammond-downloader/src/downloader.rs @@ -44,7 +44,7 @@ pub fn download_to(target: &str, url: &str) -> Result<()> { let bcount = resp.read(&mut buffer[..]).unwrap(); buffer.truncate(bcount); if !buffer.is_empty() { - writer.write(buffer.as_slice()).unwrap(); + writer.write_all(buffer.as_slice()).unwrap(); } else { break; }