Skip to content

Commit

Permalink
Accept Clippy 1.84 lints
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jan 23, 2025
1 parent f034382 commit b8b92ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl<'a, S: BuildHasher> Checker<'a, S> {
if let Some(mut idx) = word.find('\'').filter(|idx| *idx != word.len() - 1) {
// `find` returns the index of the found character. We want to include that apostrophe
// in `part1` so move the index after the apostrophe.
debug_assert_eq!("'".as_bytes().len(), 1);
debug_assert_eq!("'".len(), 1);
idx += 1;
// Slice up the word into two parts: part1 has the apostrophe and part2 is the rest.
let part1 = &word[..idx];
Expand Down

0 comments on commit b8b92ee

Please sign in to comment.