Skip to content

Commit 040965c

Browse files
authored
Merge pull request #331 from fox0/clippy--manual_range_contains
split: Fix clippy::manual_range_contains
2 parents 45c0f27 + 06a4562 commit 040965c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file/split.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Suffix {
6868
}
6969

7070
fn inc_char(ch: char) -> char {
71-
debug_assert!('a' <= ch && ch < 'z');
71+
debug_assert!(('a'..='y').contains(&ch));
7272
((ch as u8) + 1) as char
7373
}
7474
}

0 commit comments

Comments
 (0)