mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
trace keys as well
This commit is contained in:
parent
a2220f1ea4
commit
e50e704f5a
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]
|
#[inline]
|
||||||
fn trace(&self, trc: *mut JSTracer) {
|
fn trace(&self, trc: *mut JSTracer) {
|
||||||
for e in self.iter() {
|
for e in self.iter() {
|
||||||
|
e.val0().trace(trc);
|
||||||
e.val1().trace(trc);
|
e.val1().trace(trc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue