From b002f38fa9c9d855d450519ccccc1b7c491ee140 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Wed, 24 Jan 2024 11:24:37 +0100 Subject: [PATCH] chore: fix warning for deref on a double reference (#493) --- crates/rattler_solve/src/resolvo/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rattler_solve/src/resolvo/mod.rs b/crates/rattler_solve/src/resolvo/mod.rs index a1a38e571..d79f35d18 100644 --- a/crates/rattler_solve/src/resolvo/mod.rs +++ b/crates/rattler_solve/src/resolvo/mod.rs @@ -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();