mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Use the hashmap indexed getter in the custom props iterator code.
This will give a nicer error message, plus it's more compact.
This commit is contained in:
parent
08fd5ba8c1
commit
f072c0bb05
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ where
|
|||
|
||||
let ref key = index[index.len() - self.pos - 1];
|
||||
self.pos += 1;
|
||||
let value = self.inner.values.get(key).unwrap();
|
||||
let value = &self.inner.values[key];
|
||||
Some((key, value))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue