diff --git a/src/main.rs b/src/main.rs index 11bb7a9..5a534ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,11 +47,8 @@ impl Iterator for Dictionary { } } -fn line_to_word(l: String) -> String { - let l = unidecode(&l); - let l = l.to_lowercase(); - let l = l.replace("'", ""); - l +fn line_to_word(line: &str) -> String { + unidecode(&line.to_string()).to_lowercase().replace("'", "") } // filtri {{{