Skip to content

Commit 4ab9dad

Browse files
gabhijitalxiord
authored andcommitted
cmdline: Removed clippy warnings (#36)
Signed-off-by: Abhijit Gadgil <gabhijit@iitbombay.org>
1 parent dbdd174 commit 4ab9dad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cmdline/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ impl std::error::Error for Error {}
6161
pub type Result<T> = result::Result<T, Error>;
6262

6363
fn valid_char(c: char) -> bool {
64-
match c {
65-
' '..='~' => true,
66-
_ => false,
67-
}
64+
matches!(c, ' '..='~')
6865
}
6966

7067
fn valid_str(s: &str) -> Result<()> {

0 commit comments

Comments
 (0)