Fixed compilation error when rug is disabled

This commit is contained in:
bakk 2022-01-23 02:31:59 +01:00
parent e62a53fd28
commit 5c0b7e118b

View File

@ -308,11 +308,7 @@ fn eval_literal_expr(
value: f64,
unit: Option<&String>,
) -> Result<KalkValue, CalcError> {
Ok(KalkValue::Number(
float!(value),
float!(0),
unit.to_string(),
))
Ok(KalkValue::Number(float!(value), float!(0), unit.cloned()))
}
fn eval_group_expr(