Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 19, 2024
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
Expand Up @@ -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)));
}
}

Expand Down

0 comments on commit 69be03c

Please sign in to comment.