mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +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…
Add table
Add a link
Reference in a new issue