mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove Untraceable from dedicatedglobalworkerscope.rs
This commit is contained in:
parent
63dd3070d1
commit
7defa5e941
3 changed files with 24 additions and 9 deletions
|
@ -41,6 +41,7 @@ use script_traits::ScriptControlChan;
|
|||
use std::collections::hashmap::HashMap;
|
||||
use collections::hash::Hash;
|
||||
use style::PropertyDeclarationBlock;
|
||||
use std::comm::{Receiver, Sender};
|
||||
use string_cache::{Atom, Namespace};
|
||||
|
||||
impl<T: Reflectable> JSTraceable for JS<T> {
|
||||
|
@ -238,3 +239,16 @@ impl<'a> JSTraceable for &'a str {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> JSTraceable for Sender<T> {
|
||||
#[inline]
|
||||
fn trace(&self, _: *mut JSTracer) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> JSTraceable for Receiver<T> {
|
||||
#[inline]
|
||||
fn trace(&self, _: *mut JSTracer) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue