mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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> {
|
pub fn eval_as_bigint(self) -> ExprResult<BigInt> {
|
||||||
match self {
|
match self {
|
||||||
NumOrStr::Num(num) => Ok(num),
|
Self::Num(num) => Ok(num),
|
||||||
NumOrStr::Str(str) => str
|
Self::Str(str) => str
|
||||||
.parse::<BigInt>()
|
.parse::<BigInt>()
|
||||||
.map_err(|_| ExprError::NonIntegerArgument),
|
.map_err(|_| ExprError::NonIntegerArgument),
|
||||||
}
|
}
|
||||||
|
@ -247,8 +247,8 @@ impl NumOrStr {
|
||||||
|
|
||||||
pub fn eval_as_string(self) -> String {
|
pub fn eval_as_string(self) -> String {
|
||||||
match self {
|
match self {
|
||||||
NumOrStr::Num(num) => num.to_string(),
|
Self::Num(num) => num.to_string(),
|
||||||
NumOrStr::Str(str) => str,
|
Self::Str(str) => str,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue