Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed May 16, 2024
1 parent 362e189 commit a447910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/uv-resolver/src/preferences.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::{str::FromStr, sync::Arc};
use std::str::FromStr;
use std::sync::Arc;

use rustc_hash::FxHashMap;
use tracing::trace;
Expand Down
4 changes: 2 additions & 2 deletions crates/uv-resolver/src/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl<Provider: ResolverProvider, InstalledPackages: InstalledPackagesProvider>
reporter: None,
installed_packages,
};
Ok(Self { provider, state })
Ok(Self { state, provider })
}

/// Set the [`Reporter`] to use for this installer.
Expand Down Expand Up @@ -334,7 +334,7 @@ impl<Provider: ResolverProvider, InstalledPackages: InstalledPackagesProvider>
// Run the fetcher.
let requests_fut = state.clone().fetch(provider.clone(), request_stream).fuse();

// Spawn the PubGrub solver task.
// Spawn the PubGrub solver on a dedicated thread.
let solver = state.clone();
let (tx, rx) = oneshot::channel();
thread::Builder::new()
Expand Down

0 comments on commit a447910

Please sign in to comment.