Skip to content

Commit

Permalink
Fixed into_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-hughes committed Apr 17, 2024
1 parent 73ecbeb commit 1a8fe88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl<T: ?Sized> Gc<T> {
/// Get a raw pointer to the underlying value `T`.
#[unstable(feature = "gc", issue = "none")]
pub fn into_raw(this: Self) -> *const T {
this.ptr.as_ptr() as *const T
Self::as_ptr(&self)
}

/// Get a raw pointer to the underlying value `T`.
Expand Down

0 comments on commit 1a8fe88

Please sign in to comment.