Automatic fix from rls

This commit is contained in:
Blallo 2020-05-18 16:43:50 +02:00
parent 6ea12cfc46
commit ded6795623
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -1,12 +1,12 @@
use std::env;
use std::iter::Iterator;
use std::io::Error;
use std::io::BufReader;
use std::io::BufRead;
use std::fs::File;
use std::io::BufRead;
use std::io::BufReader;
use std::io::Error;
use std::iter::Iterator;
use unidecode::unidecode;
use regex::Regex;
use unidecode::unidecode;
#[derive(Default)]
struct Dictionary {
@ -40,7 +40,10 @@ fn dictionary_from_iterable(lines: impl Iterator<Item = Result<String, Error>>)
// TODO: normalizza: lascia solo a-z, converti gli accenti, ecc.
w.push(line_to_word(line))
}
return Dictionary{words: w, ..Dictionary::default()};
return Dictionary {
words: w,
..Dictionary::default()
};
}
fn line_to_word(l: String) -> String {