Make clippy happy

This commit is contained in:
Armin Ronacher 2024-06-19 10:51:03 +02:00
parent 928d2ae816
commit 69be03c583

View file

@ -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)));
}
}