From c22e169ca8a5c98195fa8138b3977bc0252e2b55 Mon Sep 17 00:00:00 2001 From: StochitaCatalin Date: Wed, 22 Nov 2023 15:22:12 +0200 Subject: [PATCH] rustfmt fail fix --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 515020a..5d4e8e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1228,7 +1228,7 @@ mod tests { } #[test] - fn regex_filter_test(){ + fn regex_filter_test() { let json: Box = Box::new(json!({ "author":"abcd(Rees)", })); @@ -1238,7 +1238,10 @@ mod tests { .expect("the path is correct"), ); let finder = JsonPathFinder::new(json.clone(), path); - assert_eq!(finder.find_slice(),vec![Slice(&json!({"author":"abcd(Rees)"}),"$".to_string())]); + assert_eq!( + finder.find_slice(), + vec![Slice(&json!({"author":"abcd(Rees)"}), "$".to_string())] + ); } // #[test]