Skip to content

Commit

Permalink
chore: fix warning for deref on a double reference (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Jan 24, 2024
1 parent 0ba1e28 commit b002f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rattler_solve/src/resolvo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ impl super::SolverImpl for Solver {
// Get the resulting packages from the solver.
let required_records = solvables
.into_iter()
.filter_map(|id| match solver.pool().resolve_solvable(id).inner() {
SolverPackageRecord::Record(rec) => Some(rec.deref().clone()),
.filter_map(|id| match *solver.pool().resolve_solvable(id).inner() {
SolverPackageRecord::Record(rec) => Some(rec.clone()),
SolverPackageRecord::VirtualPackage(_) => None,
})
.collect();
Expand Down

0 comments on commit b002f38

Please sign in to comment.