mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-25 09:22:19 +00:00
improve performance avoid remove & insert to map
This commit is contained in:
parent
15e6c6065b
commit
67991df1f2
@ -1027,11 +1027,15 @@ pub struct SelectorMut {
|
||||
value: Option<Value>,
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
fn replace_value<F: FnMut(Value) -> Value>(
|
||||
mut tokens: Vec<String>,
|
||||
value: &mut Value,
|
||||
fun: &mut F,
|
||||
) {
|
||||
=======
|
||||
fn replace_value<F: FnMut(Value) -> Value>(mut tokens: Vec<String>, value: &mut Value, fun: &mut F) {
|
||||
>>>>>>> improve performance avoid remove & insert to map
|
||||
let mut target = value;
|
||||
|
||||
let last_index = tokens.len() - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user