From 01e4f71d2063b6ba69ab4232876801e76e8b280e Mon Sep 17 00:00:00 2001 From: David Zwerdling Date: Sun, 21 May 2023 07:48:46 -0700 Subject: [PATCH] cleanup for linter and erroneous unused code Signed-off-by: David Zwerdling --- crates/rsonpath-lib/src/query/automaton/minimizer.rs | 1 - crates/rsonpath-lib/src/query/nonnegative_array_index.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/rsonpath-lib/src/query/automaton/minimizer.rs b/crates/rsonpath-lib/src/query/automaton/minimizer.rs index f9d72585..e9602d91 100644 --- a/crates/rsonpath-lib/src/query/automaton/minimizer.rs +++ b/crates/rsonpath-lib/src/query/automaton/minimizer.rs @@ -609,7 +609,6 @@ mod tests { // Query = $..a.* let label = Label::new("a"); let label = (&label).into(); - "a"; let nfa = NondeterministicAutomaton { ordered_states: vec![ diff --git a/crates/rsonpath-lib/src/query/nonnegative_array_index.rs b/crates/rsonpath-lib/src/query/nonnegative_array_index.rs index 630b7003..32c2c5c5 100644 --- a/crates/rsonpath-lib/src/query/nonnegative_array_index.rs +++ b/crates/rsonpath-lib/src/query/nonnegative_array_index.rs @@ -90,7 +90,7 @@ mod tests { #[test] fn index_ulimit_sanity_check() { - assert_eq!(9007199254740991, ARRAY_INDEX_ULIMIT); + assert_eq!(9_007_199_254_740_991, ARRAY_INDEX_ULIMIT); } #[test]