From b2ec6ad0ecebbf43e4efe5a9e61b4b029d748b9f Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Wed, 17 May 2023 13:51:35 -0600 Subject: [PATCH] Revert gc changes --- boa_gc/src/internals/gc_box.rs | 4 ++-- boa_gc/src/pointers/ephemeron.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() } }