Skip to content

Commit

Permalink
Make MutableHandle::new pub(crate) (#557)
Browse files Browse the repository at this point in the history
Fixes #552

Signed-off-by: Greg Morenz <[email protected]>
  • Loading branch information
gmorenz authored Mar 4, 2025
1 parent 963d88a commit 65f0b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozjs/src/gc/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 65f0b5b

Please sign in to comment.