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

style: code style

This commit is contained in:
2020-08-02 19:10:01 +08:00
parent 84adb46365
commit 7ee4ef2b57
3 changed files with 9 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
},
};
if *VERBOSE {
warning!("Content-Length: {}", header_content_length);
debugging!("Content-Length: {}", header_content_length);
}
copy_io(&mut response, dest, header_content_length)?;
Ok(())
@@ -33,7 +33,7 @@ pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
pub fn get_url_content(url: &str) -> XResult<String> {
if *VERBOSE {
warning!("Get URL: {}", url);
debugging!("Get URL: {}", url);
}
Ok(reqwest::get(url)?.text()?)
}