Skip to content

Commit

Permalink
split: Fix clippy::manual_range_contains
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0 committed Oct 14, 2024
1 parent 8f878a9 commit 06a4562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Suffix {
}

fn inc_char(ch: char) -> char {
debug_assert!('a' <= ch && ch < 'z');
debug_assert!(('a'..='y').contains(&ch));
((ch as u8) + 1) as char
}
}
Expand Down

0 comments on commit 06a4562

Please sign in to comment.