@@ -22,9 +22,7 @@ use crate::core::JsonbItem;
22
22
use crate :: core:: JsonbItemType ;
23
23
use crate :: core:: ObjectValueIterator ;
24
24
use crate :: error:: Result ;
25
- use crate :: jsonpath:: ArithmeticFunc ;
26
25
use crate :: jsonpath:: ArrayIndex ;
27
- use crate :: jsonpath:: BinaryArithmeticOperator ;
28
26
use crate :: jsonpath:: BinaryOperator ;
29
27
use crate :: jsonpath:: Expr ;
30
28
use crate :: jsonpath:: JsonPath ;
@@ -617,7 +615,7 @@ impl<'a> Selector<'a> {
617
615
fn eval_expr ( & mut self , item : JsonbItem < ' a > , expr : & ' a Expr < ' a > ) -> Result < ( ) > {
618
616
match expr {
619
617
Expr :: UnaryOp { op, operand } => {
620
- let res_items = self . eval_unary_arithmetic_func ( item. clone ( ) , & op, & operand) ?;
618
+ let res_items = self . eval_unary_arithmetic_func ( item. clone ( ) , op, operand) ?;
621
619
for res_item in res_items {
622
620
self . items . push_back ( res_item) ;
623
621
}
@@ -629,7 +627,7 @@ impl<'a> Selector<'a> {
629
627
| BinaryOperator :: Divide
630
628
| BinaryOperator :: Modulo => {
631
629
let res_items =
632
- self . eval_binary_arithmetic_func ( item. clone ( ) , & op, & left, right) ?;
630
+ self . eval_binary_arithmetic_func ( item. clone ( ) , op, left, right) ?;
633
631
for res_item in res_items {
634
632
self . items . push_back ( res_item) ;
635
633
}
0 commit comments