From 7e9d56a9e75391724f2c24a6f892a17dd7c30c5b Mon Sep 17 00:00:00 2001 From: ad hoc Date: Mon, 21 Mar 2022 16:25:15 +0100 Subject: [PATCH] disable typos on exact words --- milli/src/search/query_tree.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/milli/src/search/query_tree.rs b/milli/src/search/query_tree.rs index 4eccae8ce..7d13f27a3 100644 --- a/milli/src/search/query_tree.rs +++ b/milli/src/search/query_tree.rs @@ -623,7 +623,9 @@ mod test { } fn exact_words(&self) -> crate::Result>> { - Ok(fst::Set::new(Cow::Borrowed(self.exact_words.as_slice())).unwrap()) + let builder = fst::SetBuilder::new(Vec::new()).unwrap(); + let data = builder.into_inner().unwrap(); + Ok(fst::Set::new(Cow::Owned(data)).unwrap()) } }