Skip to content

Commit

Permalink
fix: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager committed Oct 4, 2024
1 parent 671d5f8 commit ebc41f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rattler_solve/src/resolvo/conda_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ impl DependencyScores {

/// Get the unique package names from a list of vectors of package names.
fn unique_name_ids<'a>(vectors: impl IntoIterator<Item = HashSet<NameId>>) -> HashSet<NameId> {

Check failure on line 373 in crates/rattler_solve/src/resolvo/conda_util.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

this lifetime isn't used in the function definition
iter
.into_iter()
.reduce(|mut acc, hs| {
vectors
.into_iter()
.reduce(|mut acc, hs| {
acc.retain(|name| hs.contains(name));
acc
})
Expand Down

0 comments on commit ebc41f2

Please sign in to comment.