Clippy fixes

This commit is contained in:
mdecimus
2024-12-01 20:13:06 +13:00
parent 4f02e4c96f
commit 03d9dabed3
27 changed files with 115 additions and 119 deletions

View File

@@ -14,7 +14,7 @@ pub struct WordTokenizer<'x> {
iterator: CharIndices<'x>,
}
impl<'x> WordTokenizer<'x> {
impl WordTokenizer<'_> {
pub fn new(text: &str, max_token_length: usize) -> WordTokenizer {
WordTokenizer {
max_token_length,