diff --git a/Cargo.toml b/Cargo.toml index df94b163e..654be15d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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! ☄🌌️ """ diff --git a/src/serde_utils.rs b/src/serde_utils.rs index 05e00cd5c..0a904ef49 100644 --- a/src/serde_utils.rs +++ b/src/serde_utils.rs @@ -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)