Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
mitsuhiko committed Jun 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 928d2ae commit 69be03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text/mod.rs
Original file line number Diff line number Diff line change
@@ -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)));
}
}

0 comments on commit 69be03c

Please sign in to comment.