From 5c29258e8e5dabd81a4f789f6b3049fe910fa950 Mon Sep 17 00:00:00 2001 From: ad hoc Date: Thu, 21 Apr 2022 14:18:08 +0200 Subject: [PATCH] fix cargo warnings --- milli/src/search/query_tree.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs index 2db4e06d5..02fc0747a 100644 --- a/milli/src/search/query_tree.rs +++ b/milli/src/search/query_tree.rs @@ -100,6 +100,7 @@ impl QueryKind { QueryKind::Exact { original_typo: 0, word } } + #[cfg(test)] pub fn exact_with_typo(original_typo: u8, word: String) -> Self { QueryKind::Exact { original_typo, word } } @@ -108,14 +109,6 @@ impl QueryKind { QueryKind::Tolerant { typo, word } } - pub fn is_tolerant(&self) -> bool { - matches!(self, QueryKind::Tolerant { .. }) - } - - pub fn is_exact(&self) -> bool { - matches!(self, QueryKind::Exact { .. }) - } - pub fn typo(&self) -> u8 { match self { QueryKind::Tolerant { typo, .. } => *typo,