This commit is contained in:
mxve 2023-11-04 11:35:19 +01:00
parent fdcf3d31bd
commit 897c5dae4b

View File

@ -31,7 +31,7 @@ pub async fn download_file(
misc::cute_path(path), misc::cute_path(path),
misc::human_readable_bytes(total_size) misc::human_readable_bytes(total_size)
)); ));
pb.set_message(format!("{}", path.file_name().unwrap().to_str().unwrap())); pb.set_message(path.file_name().unwrap().to_str().unwrap().to_string());
let mut file = let mut file =
File::create(path).or(Err(format!("Failed to create file '{}'", path.display())))?; File::create(path).or(Err(format!("Failed to create file '{}'", path.display())))?;