fix wasm benches

This commit is contained in:
freestrings
2019-06-03 11:34:34 +09:00
parent 893af2afc0
commit 56a22674bf
4 changed files with 5 additions and 26 deletions

View File

@ -57,7 +57,10 @@ fn _selector(b: &mut Bencher, index: usize) {
let mut selector = jsonpath::Selector::new();
let _ = selector.path(get_path(index));
selector.value(&json);
let _ = selector.select();
let r = selector.select();
if r.is_err() {
panic!()
}
}
});
}