From 48a54017caeab03d7bcf2a4a121d6e58abfad599 Mon Sep 17 00:00:00 2001 From: Zanie Date: Thu, 15 Feb 2024 09:33:28 -0600 Subject: [PATCH] Clippy --- crates/puffin-resolver/src/version_map.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/puffin-resolver/src/version_map.rs b/crates/puffin-resolver/src/version_map.rs index 13455d5984ae..1d2793c84188 100644 --- a/crates/puffin-resolver/src/version_map.rs +++ b/crates/puffin-resolver/src/version_map.rs @@ -115,12 +115,8 @@ impl VersionMap { version: &Version, ) -> Option<(&'a Version, &'a PrioritizedDist)> { match self.inner { - VersionMapInner::Eager(ref map) => map - .get_key_value(version) - .and_then(|(version, dist)| Some((version, dist))), - VersionMapInner::Lazy(ref lazy) => lazy - .get_with_version(version) - .and_then(|(version, dist)| Some((version, dist))), + VersionMapInner::Eager(ref map) => map.get_key_value(version), + VersionMapInner::Lazy(ref lazy) => lazy.get_with_version(version), } }