From f104f116136f955e5070b061dcd4ebc792f12f1b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sun, 24 Jun 2018 20:01:27 +0300 Subject: [PATCH] Fix trivial_cast lint warning. --- 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 0315887..28fe2ca 100644 --- a/hammond-downloader/src/downloader.rs +++ b/hammond-downloader/src/downloader.rs @@ -127,7 +127,7 @@ fn save_io( info!("Downloading into: {}", file); let chunk_size = match content_lenght { Some(x) => x as usize / 99, - None => 1024 as usize, // default chunk size + None => 1024, // default chunk size }; let mut writer = BufWriter::new(File::create(&file)?);