mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
fix unused import
This commit is contained in:
@@ -2,7 +2,7 @@ use indicatif::{ProgressBar, ProgressStyle};
|
|||||||
use std::{
|
use std::{
|
||||||
fs::{self, File},
|
fs::{self, File},
|
||||||
io::Read,
|
io::Read,
|
||||||
path::{Path, PathBuf},
|
path::Path,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{global, structs};
|
use crate::{global, structs};
|
||||||
@@ -131,7 +131,7 @@ async fn download_and_install_dependency(url: &str, path: &Path, args: &[&str])
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
match crate::http_async::download_file(url, &PathBuf::from(path)).await {
|
match crate::http_async::download_file(url, &std::path::PathBuf::from(path)).await {
|
||||||
Ok(_) => info!("Downloaded {}", path.display()),
|
Ok(_) => info!("Downloaded {}", path.display()),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println_error!("Error downloading {}: {e}", path.display());
|
println_error!("Error downloading {}: {e}", path.display());
|
||||||
|
|||||||
Reference in New Issue
Block a user