Added Sync + Send to stemmer trait

This commit is contained in:
mdecimus 2023-10-18 18:16:40 +02:00
parent 30092ce92c
commit c2974a172d
2 changed files with 1 additions and 2 deletions

View file

@ -33,7 +33,7 @@ use crate::tokenizers::{
use self::detect::LanguageDetector;
pub type LanguageTokenizer<'x> = Box<dyn Iterator<Item = Token<Cow<'x, str>>> + 'x>;
pub type LanguageTokenizer<'x> = Box<dyn Iterator<Item = Token<Cow<'x, str>>> + 'x + Sync + Send>;
impl Language {
pub fn tokenize_text<'x>(

View file

@ -21,7 +21,6 @@
* for more details.
*/
use core::panic;
use std::{sync::Arc, time::Duration};
use directory::Lookup;