From 69be03c583c07303f75518d3e47dbfb9fbfb9a15 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 19 Jun 2024 10:51:03 +0200 Subject: [PATCH] Make clippy happy --- src/text/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/mod.rs b/src/text/mod.rs index 84e300c..a470b3e 100644 --- a/src/text/mod.rs +++ b/src/text/mod.rs @@ -605,7 +605,7 @@ pub fn get_close_matches<'a, T: DiffableStr + ?Sized>( if ratio >= cutoff { // we're putting the word itself in reverse in so that matches with // the same ratio are ordered lexicographically. - matches.push(((ratio * std::u32::MAX as f32) as u32, Reverse(possibility))); + matches.push(((ratio * u32::MAX as f32) as u32, Reverse(possibility))); } }