diff --git a/kalk/src/interpreter.rs b/kalk/src/interpreter.rs index 7dda023..f9934d1 100644 --- a/kalk/src/interpreter.rs +++ b/kalk/src/interpreter.rs @@ -308,11 +308,7 @@ fn eval_literal_expr( value: f64, unit: Option<&String>, ) -> Result { - Ok(KalkValue::Number( - float!(value), - float!(0), - unit.to_string(), - )) + Ok(KalkValue::Number(float!(value), float!(0), unit.cloned())) } fn eval_group_expr(