From c18fa4a75bb2ea63434af1ddfdf478cdf4f842fd Mon Sep 17 00:00:00 2001 From: Greg Morenz Date: Sun, 2 Mar 2025 21:13:47 -0500 Subject: [PATCH] Make MutableHandle::new pub(crate) Fixes #552 Signed-off-by: Greg Morenz --- mozjs/src/gc/root.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozjs/src/gc/root.rs b/mozjs/src/gc/root.rs index 67276bf3c4..3f23e6035f 100644 --- a/mozjs/src/gc/root.rs +++ b/mozjs/src/gc/root.rs @@ -184,7 +184,7 @@ impl<'a, T> MutableHandle<'a, T> { unsafe { Handle::new(&*self.ptr) } } - pub fn new(ptr: &'a mut T) -> Self { + pub(crate) fn new(ptr: &'a mut T) -> Self { Self { ptr, anchor: PhantomData,