Skip to content

Commit 2a68027

Browse files
committed
clippy fix
1 parent 7060848 commit 2a68027

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

benches/strip_nulls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn strip_nulls_deser(data: &[u8]) {
2929
let mut json = from_slice(data).unwrap();
3030
strip_value_nulls(&mut json);
3131
json.write_to_vec(&mut buf);
32-
assert_eq!(buf.is_empty(), false);
32+
assert!(!buf.is_empty());
3333
}
3434

3535
fn strip_value_nulls(val: &mut Value<'_>) {
@@ -52,7 +52,7 @@ fn strip_value_nulls(val: &mut Value<'_>) {
5252
fn strip_nulls_fast(data: &[u8]) {
5353
let mut buf = Vec::new();
5454
strip_nulls(data, &mut buf).unwrap();
55-
assert_eq!(buf.is_empty(), false);
55+
assert!(!buf.is_empty());
5656
}
5757

5858
fn add_benchmark(c: &mut Criterion) {

tests/it/functions.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ use std::collections::BTreeMap;
1818

1919
use jsonb::{
2020
array_length, array_values, as_bool, as_null, as_number, as_str, build_array, build_object,
21-
compare, contains, convert_to_comparable, exists_all_keys, exists_any_keys, from_slice,
21+
compare, concat, contains, convert_to_comparable, exists_all_keys, exists_any_keys, from_slice,
2222
get_by_index, get_by_keypath, get_by_name, get_by_path, is_array, is_object,
23-
keypath::parse_key_paths, object_each, object_keys, parse_value, path_exists, strip_nulls,
24-
to_bool, to_f64, to_i64, to_pretty_string, to_str, to_string, to_u64, traverse_check_string,
25-
type_of, Number, Object, Value,
23+
keypath::parse_key_paths, object_each, object_keys, parse_value, path_exists, path_match,
24+
strip_nulls, to_bool, to_f64, to_i64, to_pretty_string, to_str, to_string, to_u64,
25+
traverse_check_string, type_of, Number, Object, Value,
2626
};
27-
use jsonb::{concat, path_match};
2827

2928
use jsonb::jsonpath::parse_json_path;
3029
use nom::AsBytes;

0 commit comments

Comments
 (0)