mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
style lint fixes
This commit is contained in:
parent
fa0c64ddde
commit
824371d884
1 changed files with 4 additions and 4 deletions
|
@ -238,8 +238,8 @@ impl NumOrStr {
|
|||
|
||||
pub fn eval_as_bigint(self) -> ExprResult<BigInt> {
|
||||
match self {
|
||||
NumOrStr::Num(num) => Ok(num),
|
||||
NumOrStr::Str(str) => str
|
||||
Self::Num(num) => Ok(num),
|
||||
Self::Str(str) => str
|
||||
.parse::<BigInt>()
|
||||
.map_err(|_| ExprError::NonIntegerArgument),
|
||||
}
|
||||
|
@ -247,8 +247,8 @@ impl NumOrStr {
|
|||
|
||||
pub fn eval_as_string(self) -> String {
|
||||
match self {
|
||||
NumOrStr::Num(num) => num.to_string(),
|
||||
NumOrStr::Str(str) => str,
|
||||
Self::Num(num) => num.to_string(),
|
||||
Self::Str(str) => str,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue