Skip to content

Commit 0d05f07

Browse files
committed
Hide call to unsafe method inside of an unsafe block in rooting macro.
1 parent 2087c35 commit 0d05f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mozjs/src/gc/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ macro_rules! rooted {
2121
let $($var)+: $crate::gc::RootedGuard<$type> = $crate::gc::RootedGuard::new(
2222
$cx,
2323
&mut __root,
24-
<$type as $crate::gc::GCMethods>::initial(),
24+
unsafe { <$type as $crate::gc::GCMethods>::initial() },
2525
);
2626
};
2727
}

0 commit comments

Comments
 (0)