mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -05:00
style: Clippy
This commit is contained in:
parent
b1c473c9c1
commit
6037eebfdc
1 changed files with 5 additions and 7 deletions
|
@ -20,9 +20,7 @@ fn generate<W: std::io::Write>(file: &mut W, dict: &[u8]) {
|
||||||
let mut typo = i.next().expect("typo").to_owned();
|
let mut typo = i.next().expect("typo").to_owned();
|
||||||
typo.make_ascii_lowercase();
|
typo.make_ascii_lowercase();
|
||||||
let typo = UniCase::new(typo);
|
let typo = UniCase::new(typo);
|
||||||
rows.entry(typo)
|
rows.entry(typo).or_insert_with(Vec::new).extend(i.map(|c| {
|
||||||
.or_insert_with(|| Vec::new())
|
|
||||||
.extend(i.map(|c| {
|
|
||||||
let mut c = c.to_owned();
|
let mut c = c.to_owned();
|
||||||
c.make_ascii_lowercase();
|
c.make_ascii_lowercase();
|
||||||
c
|
c
|
||||||
|
|
Loading…
Reference in a new issue