Added Sync + Send to stemmer trait
This commit is contained in:
@@ -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>(
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
use core::panic;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use directory::Lookup;
|
||||
|
||||
Reference in New Issue
Block a user