chore: bump msrv to 1.64 (#4542)

* chore: bump msrv to 1.64

* clippy fix
This commit is contained in:
David Knaack 2022-10-30 11:17:54 +01:00 committed by GitHub
parent cd540e7fc6
commit d1bc982a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ license = "ISC"
readme = "README.md"
repository = "https://github.com/starship/starship"
# Note: MSRV is only intended as a hint, and only the latest version is officially supported in starship.
rust-version = "1.60"
rust-version = "1.64"
description = """
The minimal, blazing-fast, and infinitely customizable prompt for any shell! 🌌
"""

View File

@ -136,7 +136,7 @@ impl<'de> Deserializer<'de> for ValueDeserializer<'de> {
.iter()
.filter_map(|field| {
let score = strsim::jaro_winkler(key, field);
(score > 0.8).then(|| (score, field))
(score > 0.8).then_some((score, field))
})
.max_by(|(score_a, _field_a), (score_b, _field_b)| {
score_a.partial_cmp(score_b).unwrap_or(Ordering::Equal)