SelectorMut first commit

This commit is contained in:
freestrings
2019-06-09 22:55:35 +09:00
parent 9a08df7843
commit dd9315bc90
8 changed files with 254 additions and 46 deletions

View File

@ -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() {