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