mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Merge pull request #3508 from wenderen/JSTraceable.key
trace keys as well Reviewed-by: Manishearth
This commit is contained in:
commit
42205675b3
1 changed files with 2 additions and 1 deletions
|
@ -211,10 +211,11 @@ impl<T: JSTraceable> JSTraceable for Option<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<K: Eq+Hash, V: JSTraceable> JSTraceable for HashMap<K, V> {
|
||||
impl<K: Eq+Hash+JSTraceable, V: JSTraceable> JSTraceable for HashMap<K, V> {
|
||||
#[inline]
|
||||
fn trace(&self, trc: *mut JSTracer) {
|
||||
for e in self.iter() {
|
||||
e.val0().trace(trc);
|
||||
e.val1().trace(trc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue