diff --git a/boa_gc/src/internals/gc_box.rs b/boa_gc/src/internals/gc_box.rs index 61e61f19195..e5e5dd1b92e 100644 --- a/boa_gc/src/internals/gc_box.rs +++ b/boa_gc/src/internals/gc_box.rs @@ -85,9 +85,9 @@ impl fmt::Debug for GcBoxHeader { /// A garbage collected allocation. #[derive(Debug)] -pub struct GcBox { +pub struct GcBox { pub(crate) header: GcBoxHeader, - pub(crate) value: T, + value: T, } impl GcBox { diff --git a/boa_gc/src/pointers/ephemeron.rs b/boa_gc/src/pointers/ephemeron.rs index cce6d363afa..c63da65fd72 100644 --- a/boa_gc/src/pointers/ephemeron.rs +++ b/boa_gc/src/pointers/ephemeron.rs @@ -77,7 +77,7 @@ impl Ephemeron { self.inner_ptr.get().as_ptr() } - pub(crate) fn inner(&self) -> &EphemeronBox { + fn inner(&self) -> &EphemeronBox { // SAFETY: Please see Gc::inner_ptr() unsafe { self.inner_ptr().as_ref() } }