Fixed compilation error when rug is disabled

This commit is contained in:
bakk 2022-01-23 02:31:59 +01:00 committed by PaddiM8
parent 96108b5d7d
commit 66aeff3ade

View File

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