From dd51f0d0c33a97bc8f01420b8fab0fca668ada28 Mon Sep 17 00:00:00 2001 From: Enola Knezevic Date: Fri, 19 Apr 2024 16:59:13 +0200 Subject: [PATCH] pulchrified test --- src/util.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util.rs b/src/util.rs index eed2229..26960c5 100644 --- a/src/util.rs +++ b/src/util.rs @@ -436,10 +436,8 @@ mod test { #[test] fn test_replace_cql_all() { - for (key, value) in REPLACE_MAP.iter() { - let decoded_library: &str = key; - let expected_result: &str = value; - pretty_assertions::assert_eq!(replace_cql(decoded_library), expected_result); + for (decoded_library, expected_result) in REPLACE_MAP.iter() { + pretty_assertions::assert_eq!(replace_cql(*decoded_library).as_str(), *expected_result); } }