mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 01:48:09 +02:00
fix clippy.
This commit is contained in:
parent
9c4e3787f5
commit
0d7cf72ed2
@ -60,8 +60,7 @@ pub fn compute_values(
|
|||||||
Operator::Minus => Ok(UntaggedValue::Primitive(Primitive::Int(x - y))),
|
Operator::Minus => Ok(UntaggedValue::Primitive(Primitive::Int(x - y))),
|
||||||
Operator::Multiply => Ok(UntaggedValue::Primitive(Primitive::Int(x * y))),
|
Operator::Multiply => Ok(UntaggedValue::Primitive(Primitive::Int(x * y))),
|
||||||
Operator::Divide => Ok(UntaggedValue::Primitive(Primitive::Decimal(
|
Operator::Divide => Ok(UntaggedValue::Primitive(Primitive::Decimal(
|
||||||
bigdecimal::BigDecimal::from(x.clone())
|
bigdecimal::BigDecimal::from(*x) / bigdecimal::BigDecimal::from(y.clone()),
|
||||||
/ bigdecimal::BigDecimal::from(y.clone()),
|
|
||||||
))),
|
))),
|
||||||
_ => Err((left.type_name(), right.type_name())),
|
_ => Err((left.type_name(), right.type_name())),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user