Fix clippy warnings

This commit is contained in:
Jakub Žádník
2021-09-05 01:40:15 +03:00
parent 6b4fee88c9
commit f0d469f1d4
3 changed files with 10 additions and 14 deletions

View File

@ -58,7 +58,7 @@ pub fn eval_expression(
Expr::Range(from, to, operator) => {
// TODO: Embed the min/max into Range and set max to be the true max
let from = if let Some(f) = from {
eval_expression(context, &f)?
eval_expression(context, f)?
} else {
Value::Int {
val: 0i64,
@ -67,7 +67,7 @@ pub fn eval_expression(
};
let to = if let Some(t) = to {
eval_expression(context, &t)?
eval_expression(context, t)?
} else {
Value::Int {
val: 100i64,