mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 21:57:41 +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"
|
readme = "README.md"
|
||||||
repository = "https://github.com/starship/starship"
|
repository = "https://github.com/starship/starship"
|
||||||
# Note: MSRV is only intended as a hint, and only the latest version is officially supported in 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 = """
|
description = """
|
||||||
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
|
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
|
||||||
"""
|
"""
|
||||||
|
@ -136,7 +136,7 @@ impl<'de> Deserializer<'de> for ValueDeserializer<'de> {
|
|||||||
.iter()
|
.iter()
|
||||||
.filter_map(|field| {
|
.filter_map(|field| {
|
||||||
let score = strsim::jaro_winkler(key, 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)| {
|
.max_by(|(score_a, _field_a), (score_b, _field_b)| {
|
||||||
score_a.partial_cmp(score_b).unwrap_or(Ordering::Equal)
|
score_a.partial_cmp(score_b).unwrap_or(Ordering::Equal)
|
||||||
|
Loading…
Reference in New Issue
Block a user