Clippy fixes

This commit is contained in:
mdecimus
2025-01-11 11:43:45 +01:00
parent dc19f20285
commit 3612d5fc5d
67 changed files with 131 additions and 140 deletions

View File

@@ -72,7 +72,7 @@ impl<T: Iterator<Item = BayesInputToken>> Iterator for BayesTokenizer<T> {
BayesInputToken::Word(word) => {
if self
.stop_words
.map_or(false, |sw| sw.contains(word.as_str()))
.is_some_and(|sw| sw.contains(word.as_str()))
{
continue;
}