mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-07 23:34:55 -05:00
test(dict): Consistenty filter out unverified entries
This commit is contained in:
parent
bd36f89fcd
commit
679c99cf66
1 changed files with 5 additions and 1 deletions
|
@ -203,7 +203,11 @@ fn varcon_words() -> HashSet<UniCase<&'static str>> {
|
||||||
|
|
||||||
fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> {
|
fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> {
|
||||||
let mut words: HashMap<&'static str, HashSet<&'static str>> = HashMap::new();
|
let mut words: HashMap<&'static str, HashSet<&'static str>> = HashMap::new();
|
||||||
for entry in varcon::VARCON.iter().flat_map(|c| c.entries.iter()) {
|
for entry in varcon::VARCON
|
||||||
|
.iter()
|
||||||
|
.filter(|c| c.verified)
|
||||||
|
.flat_map(|c| c.entries.iter())
|
||||||
|
{
|
||||||
let variants: HashSet<_> = entry
|
let variants: HashSet<_> = entry
|
||||||
.variants
|
.variants
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in a new issue