Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit d01b430

Browse files
committed
[#411] fix the reference of GCMethods Trait
1 parent b50cccf commit d01b430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ macro_rules! rooted {
400400
};
401401
(in($cx:expr) let $name:ident: $type:ty) => {
402402
let mut __root = $crate::jsapi::Rooted::new_unrooted();
403-
let $name = $crate::rust::RootedGuard::new($cx, &mut __root, <$type as GCMethods>::initial());
403+
let $name = $crate::rust::RootedGuard::new($cx, &mut __root, <$type as $crate::rust::GCMethods>::initial());
404404
};
405405
(in($cx:expr) let mut $name:ident: $type:ty) => {
406406
let mut __root = $crate::jsapi::Rooted::new_unrooted();
407-
let mut $name = $crate::rust::RootedGuard::new($cx, &mut __root, <$type as GCMethods>::initial());
407+
let mut $name = $crate::rust::RootedGuard::new($cx, &mut __root, <$type as $crate::rust::GCMethods>::initial());
408408
};
409409
}
410410

0 commit comments

Comments
 (0)