Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Feb 15, 2024
1 parent 30bbf9c commit 77cba18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/puffin-resolver/src/version_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,9 @@ impl VersionMap {
) -> Option<(&'a Version, &'a PrioritizedDist)> {
match self.inner {
VersionMapInner::Eager(ref map) => map
.get_key_value(version)
.and_then(|(version, dist)| Some((version, dist))),
.get_key_value(version),
VersionMapInner::Lazy(ref lazy) => lazy
.get_with_version(version)
.and_then(|(version, dist)| Some((version, dist))),
.get_with_version(version),
}
}

Expand Down

0 comments on commit 77cba18

Please sign in to comment.