From 67991df1f2b08d0b69f098d86b2c310aeef411c0 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 11 Aug 2019 18:27:37 +0300 Subject: [PATCH] improve performance avoid remove & insert to map --- src/select/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/select/mod.rs b/src/select/mod.rs index b0495c7..808c7a4 100644 --- a/src/select/mod.rs +++ b/src/select/mod.rs @@ -1027,11 +1027,15 @@ pub struct SelectorMut { value: Option, } +<<<<<<< HEAD fn replace_value Value>( mut tokens: Vec, value: &mut Value, fun: &mut F, ) { +======= +fn replace_value Value>(mut tokens: Vec, value: &mut Value, fun: &mut F) { +>>>>>>> improve performance avoid remove & insert to map let mut target = value; let last_index = tokens.len() - 1;