mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-06-23 04:41:38 +00:00
SelectorMut first commit
This commit is contained in:
@ -55,7 +55,7 @@ fn _selector(b: &mut Bencher, index: usize) {
|
||||
b.iter(move || {
|
||||
for _ in 1..100 {
|
||||
let mut selector = jsonpath::Selector::new();
|
||||
let _ = selector.path(get_path(index));
|
||||
let _ = selector.str_path(get_path(index));
|
||||
selector.value(&json);
|
||||
let r = selector.select();
|
||||
if r.is_err() {
|
||||
|
Reference in New Issue
Block a user