Skip to content

Commit 4cd8eec

Browse files
committed
Fix clippy with latest rust stable
1 parent ae965fc commit 4cd8eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lib/src/install.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async fn symlink(installation: &Installation, config: &Config) -> Result<(), Box
162162
let most_minor = versions
163163
.iter()
164164
.filter(|(version, _)| minor_range.satisfies(version))
165-
.last()
165+
.next_back()
166166
.ok_or_else(|| anyhow::anyhow!("Could not find most minor version"))?;
167167

168168
if most_minor.0 != installation.pkg.version {
@@ -177,7 +177,7 @@ async fn symlink(installation: &Installation, config: &Config) -> Result<(), Box
177177
let most_major = versions
178178
.iter()
179179
.filter(|(version, _)| major_range.satisfies(version))
180-
.last()
180+
.next_back()
181181
.ok_or_else(|| anyhow::anyhow!("Could not find most major version"))?;
182182

183183
if most_major.0 != installation.pkg.version {

0 commit comments

Comments
 (0)