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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user