style lint fixes

This commit is contained in:
Arpit Bhadauria 2023-12-11 02:12:24 +00:00
parent fa0c64ddde
commit 824371d884

View file

@ -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,
}
}
}