mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 13:47:38 +00:00
chore: bump msrv to 1.64 (#4542)
* chore: bump msrv to 1.64 * clippy fix
This commit is contained in:
parent
cd540e7fc6
commit
d1bc982a37
@ -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! ☄🌌️
|
||||
"""
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user