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

feat: use rust_util 0.6.15

This commit is contained in:
2020-09-20 16:59:50 +08:00
parent c214a53219
commit e227603ab2
4 changed files with 8 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
use std::fs::File;
use rust_util::{ XResult, util_io::copy_io };
use rust_util::{ XResult, util_io };
use crate::misc::VERBOSE;
@@ -27,7 +27,7 @@ pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
if *VERBOSE {
debugging!("Content-Length: {}", header_content_length);
}
copy_io(&mut response, dest, header_content_length)?;
util_io::copy_io_default(&mut response, dest, header_content_length)?;
Ok(())
}