1
0
mirror of https://github.com/jht5945/buildj.git synced 2026-01-12 08:20:03 +08:00

rm unused fn

This commit is contained in:
2020-02-03 00:38:09 +08:00
parent 0b52cda6ba
commit c1fb92449e
6 changed files with 9 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
}
let mut response = reqwest::get(url)?;
let header_content_length: i64 = match response.headers().get("content-length") {
None => -1,
None => -1_i64,
Some(len_value) => len_value.to_str().unwrap().parse::<i64>().unwrap(),
};
if *VERBOSE {