mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 23:44:52 +02:00
Fix latest clippy warnings (#3049)
This commit is contained in:
@ -14,6 +14,6 @@ where
|
||||
D: serde::Deserializer<'de>,
|
||||
{
|
||||
let x: String = serde::Deserialize::deserialize(deserializer)?;
|
||||
Ok(BigDecimal::parse_bytes(x.as_bytes(), 10)
|
||||
.ok_or_else(|| serde::de::Error::custom("expected a bigdecimal"))?)
|
||||
BigDecimal::parse_bytes(x.as_bytes(), 10)
|
||||
.ok_or_else(|| serde::de::Error::custom("expected a bigdecimal"))
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ where
|
||||
{
|
||||
let x: String = serde::Deserialize::deserialize(deserializer)?;
|
||||
|
||||
Ok(BigInt::parse_bytes(x.as_bytes(), 10)
|
||||
.ok_or_else(|| serde::de::Error::custom("expected a bignum"))?)
|
||||
BigInt::parse_bytes(x.as_bytes(), 10)
|
||||
.ok_or_else(|| serde::de::Error::custom("expected a bignum"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user