From 58b85cd77338bfc5a35fa39e10598cadb27eee32 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 30 Jan 2025 23:39:40 -0600 Subject: Remove some unused imports but not all of them --- src/launcher.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/launcher.rs') diff --git a/src/launcher.rs b/src/launcher.rs index 653f17a..d414305 100644 --- a/src/launcher.rs +++ b/src/launcher.rs @@ -17,7 +17,7 @@ use std::ffi::{OsStr, OsString}; use std::fmt::{Display, Formatter}; use std::io::ErrorKind; use std::io::ErrorKind::AlreadyExists; -use std::path::{Component, Path, PathBuf, Prefix}; +use std::path::{Component, Path, PathBuf}; use std::{env, process}; use std::env::JoinPathsError; use std::time::{Instant, SystemTime, UNIX_EPOCH}; @@ -32,7 +32,7 @@ use tokio_stream::wrappers::ReadDirStream; use download::{MultiDownloader, VerifiedDownload}; use rules::{CompatCheck, IncompatibleError}; use version::{VersionList, VersionResolveError, VersionResult}; -use crate::version::{Logging, Library, OSRestriction, OperatingSystem, DownloadType, DownloadInfo, LibraryExtractRule, CompleteVersion, FeatureMatcher, ClientLogging}; +use crate::version::{Library, OSRestriction, OperatingSystem, DownloadType, DownloadInfo, LibraryExtractRule, CompleteVersion, FeatureMatcher, ClientLogging}; use assets::{AssetError, AssetRepository}; use crate::util::{self, AsJavaPath}; @@ -685,7 +685,6 @@ impl LibraryRepository { } async fn extract_natives<'lib>(&self, libs: Vec) -> Result { - let libs = libs; fs::create_dir_all(&self.natives).await.map_err(|e| LaunchError::IO { what: "creating natives directory", error: e -- cgit v1.2.3-70-g09d2