mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Implement JSTraceable for (A, B, C, D) instead of (T, T, T, T)
This commit is contained in:
parent
99b6091b7a
commit
435d4d9f25
1 changed files with 7 additions and 1 deletions
|
@ -261,7 +261,13 @@ unsafe impl<T: JSTraceable> JSTraceable for VecDeque<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl<T: JSTraceable> JSTraceable for (T, T, T, T) {
|
unsafe impl<A, B, C, D> JSTraceable for (A, B, C, D)
|
||||||
|
where
|
||||||
|
A: JSTraceable,
|
||||||
|
B: JSTraceable,
|
||||||
|
C: JSTraceable,
|
||||||
|
D: JSTraceable,
|
||||||
|
{
|
||||||
unsafe fn trace(&self, trc: *mut JSTracer) {
|
unsafe fn trace(&self, trc: *mut JSTracer) {
|
||||||
self.0.trace(trc);
|
self.0.trace(trc);
|
||||||
self.1.trace(trc);
|
self.1.trace(trc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue