mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 23:19:49 +02:00
fix clippy.
This commit is contained in:
@@ -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())),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user