mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (use is_ok)
This commit is contained in:
parent
8b18b7c206
commit
739c2d5793
1 changed files with 1 additions and 4 deletions
|
@ -58,10 +58,7 @@ impl Token {
|
|||
}
|
||||
fn is_a_number(&self) -> bool {
|
||||
match *self {
|
||||
Token::Value { ref value, .. } => match value.parse::<i64>() {
|
||||
Ok(_) => true,
|
||||
Err(_) => false,
|
||||
},
|
||||
Token::Value { ref value, .. } => value.parse::<i64>().is_ok(),
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue