From d1bc982a3722ba19f436edce7f8500ca55057aa8 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Sun, 30 Oct 2022 11:17:54 +0100 Subject: [PATCH] chore: bump msrv to 1.64 (#4542) * chore: bump msrv to 1.64 * clippy fix --- Cargo.toml | 2 +- src/serde_utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index df94b163..654be15d 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 05e00cd5..0a904ef4 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)