mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 18:10:42 +01:00
Fixed compilation error when rug is disabled
This commit is contained in:
parent
96108b5d7d
commit
66aeff3ade
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user