Skip to content

Commit 6cf23a8

Browse files
Samuel Ortizjiangliu
authored andcommitted
cmdline: Fix warning
Range patterns are deprecated. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 1c60daf commit 6cf23a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmdline/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub type Result<T> = result::Result<T, Error>;
4444

4545
fn valid_char(c: char) -> bool {
4646
match c {
47-
' '...'~' => true,
47+
' '..='~' => true,
4848
_ => false,
4949
}
5050
}

0 commit comments

Comments
 (0)