Skip to content

Commit

Permalink
Fix new nightly warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ISibboI committed May 16, 2023
1 parent 0a46a24 commit ed6430a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/operator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::function::builtin::builtin_function;

use crate::{context::Context, error::*, value::Value, ContextWithMutableVariables};
use std::borrow::Borrow;

mod display;

Expand Down Expand Up @@ -219,7 +218,10 @@ impl Operator {
} else {
Err(EvalexprError::wrong_type_combination(
self.clone(),
vec![arguments[0].borrow().into(), arguments[1].borrow().into()],
vec![
arguments.get(0).unwrap().into(),
arguments.get(1).unwrap().into(),
],
))
}
},
Expand Down

0 comments on commit ed6430a

Please sign in to comment.