From 297c25dffcd51122ee75cf70b8ebf09dcc2ff19f Mon Sep 17 00:00:00 2001 From: Frank Benkstein Date: Sun, 26 Nov 2023 13:47:52 +0100 Subject: [PATCH] run cargo fmt on tests --- tests/blocklist.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/blocklist.rs b/tests/blocklist.rs index 470a7a5..433a8ce 100644 --- a/tests/blocklist.rs +++ b/tests/blocklist.rs @@ -39,11 +39,13 @@ fn blocklist() { None, None, Some(HashSet::from([ - "JSwXFaosAN".to_owned(), // normal result of 1st encoding, let's block that word on purpose + "JSwXFaosAN".to_owned(), /* normal result of 1st encoding, let's block that word on + * purpose */ "OCjV9JK64o".to_owned(), // result of 2nd encoding - "rBHf".to_owned(), // result of 3rd encoding is `4rBHfOiqd3`, let's block a substring - "79SM".to_owned(), // result of 4th encoding is `dyhgw479SM`, let's block the postfix - "7tE6".to_owned(), // result of 4th encoding is `7tE6jdAHLe`, let's block the prefix + "rBHf".to_owned(), /* result of 3rd encoding is `4rBHfOiqd3`, let's block a + * substring */ + "79SM".to_owned(), // result of 4th encoding is `dyhgw479SM`, let's block the postfix + "7tE6".to_owned(), // result of 4th encoding is `7tE6jdAHLe`, let's block the prefix ])), ))) .unwrap(); @@ -87,7 +89,8 @@ fn blocklist_filtering_in_constructor() { let sqids = Sqids::new(Some(Options::new( Some("ABCDEFGHIJKLMNOPQRSTUVWXYZ".to_string()), None, - Some(HashSet::from(["sxnzkl".to_owned()])), // lowercase blocklist in only-uppercase alphabet + Some(HashSet::from(["sxnzkl".to_owned()])), /* lowercase blocklist in only-uppercase + * alphabet */ ))) .unwrap();