mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-13 01:23:56 +01:00
test(dict): Consistenty filter out unverified entries
This commit is contained in:
1 parent
bd36f89fcd
commit
679c99cf66
1 file changed
+5
-1
@@ -203,7 +203,11 @@ fn varcon_words() -> HashSet<UniCase<&'static str>> {
|
||||
|
||||
fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> {
|
||||
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
|
||||
.variants
|
||||
.iter()
|
||||
|
||||
Reference in new issue
Block a user