From 245b7082fead2d22586e502f9d872c050989fef2 Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Mon, 3 Jun 2024 11:28:34 -0600 Subject: [PATCH] Clippy --- fry_normalize/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fry_normalize/src/lib.rs b/fry_normalize/src/lib.rs index 4236501..53ffc5e 100644 --- a/fry_normalize/src/lib.rs +++ b/fry_normalize/src/lib.rs @@ -110,7 +110,7 @@ fn normalize_number(input: &str) -> Result { fn normalize_word(word: &str) -> Result { Ok(word.to_string()) } -fn normalize_symbol(sym: &str) -> Result { +fn normalize_symbol(_sym: &str) -> Result { todo!() } @@ -152,7 +152,7 @@ mod tests { #[test] fn regex_loads_successfully() { let map = regex_map().unwrap(); - assert!(map.len() > 0, "The map must contain at least one item"); + assert!(!map.len().is_empty(), "The map must contain at least one item"); } #[test] fn test_number_normalization() {