Skip to content

Commit

Permalink
Revert gc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed May 18, 2023
1 parent 5aa6d07 commit b2ec6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boa_gc/src/internals/gc_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ impl fmt::Debug for GcBoxHeader {

/// A garbage collected allocation.
#[derive(Debug)]
pub struct GcBox<T: ?Sized + 'static> {
pub struct GcBox<T: Trace + ?Sized + 'static> {
pub(crate) header: GcBoxHeader,
pub(crate) value: T,
value: T,
}

impl<T: Trace> GcBox<T> {
Expand Down
2 changes: 1 addition & 1 deletion boa_gc/src/pointers/ephemeron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<K: Trace + ?Sized, V: Trace> Ephemeron<K, V> {
self.inner_ptr.get().as_ptr()
}

pub(crate) fn inner(&self) -> &EphemeronBox<K, V> {
fn inner(&self) -> &EphemeronBox<K, V> {
// SAFETY: Please see Gc::inner_ptr()
unsafe { self.inner_ptr().as_ref() }
}
Expand Down

0 comments on commit b2ec6ad

Please sign in to comment.