disable typos on exact words

This commit is contained in:
ad hoc 2022-03-21 16:25:15 +01:00
parent 900825bac0
commit 7e9d56a9e7
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -623,7 +623,9 @@ mod test {
} }
fn exact_words(&self) -> crate::Result<fst::Set<Cow<[u8]>>> { fn exact_words(&self) -> crate::Result<fst::Set<Cow<[u8]>>> {
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())
} }
} }