Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshchiy committed Jan 1, 2024
1 parent 7060848 commit 2a68027
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions benches/strip_nulls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn strip_nulls_deser(data: &[u8]) {
let mut json = from_slice(data).unwrap();
strip_value_nulls(&mut json);
json.write_to_vec(&mut buf);
assert_eq!(buf.is_empty(), false);
assert!(!buf.is_empty());
}

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

fn add_benchmark(c: &mut Criterion) {
Expand Down
9 changes: 4 additions & 5 deletions tests/it/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ use std::collections::BTreeMap;

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

use jsonb::jsonpath::parse_json_path;
use nom::AsBytes;
Expand Down

0 comments on commit 2a68027

Please sign in to comment.