Skip to content

Commit abc7faa

Browse files
committed
Fixed patterns
1 parent bbc090b commit abc7faa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/namespace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ impl<'a> Iterator<(Option<&'a str>, &'a str)> for NamespaceStackMappings<'a> {
217217

218218
match next_item {
219219
// There is an element in the current namespace
220-
Some(mapping @ (k, _)) => if self.used_keys.contains(&k) {
220+
Some((k, v)) => if self.used_keys.contains(&k) {
221221
// If the current key is used, go to the next one
222222
self.next()
223223
} else {
224224
// Otherwise insert the current key to the set of used keys and
225225
// return the mapping
226226
self.used_keys.insert(k);
227-
Some(mapping)
227+
Some((k, v))
228228
},
229229
// Current namespace is exhausted
230230
None => if self.to_next_namespace() {

0 commit comments

Comments
 (0)