From 68e4c727e555bfeb1dfa46963992129d7980a485 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Sun, 1 Sep 2024 09:31:13 +0200 Subject: [PATCH] fix unused import --- src/misc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.rs b/src/misc.rs index 407133b..d8e7d4b 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -2,7 +2,7 @@ use indicatif::{ProgressBar, ProgressStyle}; use std::{ fs::{self, File}, io::Read, - path::{Path, PathBuf}, + path::Path, }; use crate::{global, structs}; @@ -131,7 +131,7 @@ async fn download_and_install_dependency(url: &str, path: &Path, args: &[&str]) 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()), Err(e) => { println_error!("Error downloading {}: {e}", path.display());