make no_jsmanaged_fields not require imports

This commit is contained in:
Manish Goregaokar 2015-03-26 22:05:28 +05:30
parent 432739164b
commit c9ccf7aeb4
2 changed files with 5 additions and 5 deletions

View file

@ -169,18 +169,18 @@ macro_rules! make_uint_setter(
macro_rules! no_jsmanaged_fields(
($($ty:ident),+) => (
$(
impl JSTraceable for $ty {
impl $crate::dom::bindings::trace::JSTraceable for $ty {
#[inline]
fn trace(&self, _: *mut JSTracer) {
fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
// Do nothing
}
}
)+
);
($ty:ident<$($gen:ident),+>) => (
impl<$($gen),+> JSTraceable for $ty<$($gen),+> {
impl<$($gen),+> $crate::dom::bindings::trace::JSTraceable for $ty<$($gen),+> {
#[inline]
fn trace(&self, _: *mut JSTracer) {
fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
// Do nothing
}
}