mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-25 16:09:03 -05:00
fix(dictgen)!: Remove fn iter
This commit is contained in:
parent
3db1b3906e
commit
a33352a199
2 changed files with 0 additions and 10 deletions
|
@ -68,9 +68,4 @@ impl<V> DictMap<V> {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn iter(&self) -> impl Iterator<Item = (unicase::UniCase<&str>, &V)> + '_ {
|
||||
self.map.entries().map(|(k, v)| (k.convert(), v))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,9 +70,4 @@ impl<V> DictTable<V> {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn iter(&self) -> impl Iterator<Item = (unicase::UniCase<&'static str>, &'static V)> + '_ {
|
||||
(0..self.keys.len()).map(move |i| (self.keys[i].convert(), &self.values[i]))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue