diff options
| author | 2025-01-30 23:39:40 -0600 | |
|---|---|---|
| committer | 2025-01-30 23:39:40 -0600 | |
| commit | 58b85cd77338bfc5a35fa39e10598cadb27eee32 (patch) | |
| tree | 504f2ce93ff4ef3129b757018a3d9b47f257328b /src/launcher.rs | |
| parent | remove dead oauth code (diff) | |
Remove some unused imports but not all of them
Diffstat (limited to 'src/launcher.rs')
| -rw-r--r-- | src/launcher.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<LibraryExtractJob>) -> Result<PathBuf, LaunchError> { - let libs = libs; fs::create_dir_all(&self.natives).await.map_err(|e| LaunchError::IO { what: "creating natives directory", error: e |
