Skip to content

Commit c2e16cb

Browse files
committed
UnsafePinned::raw_get: sync signature with get
1 parent 239e8b1 commit c2e16cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/pin/unsafe_pinned.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ impl<T: ?Sized> UnsafePinned<T> {
120120
#[inline(always)]
121121
#[must_use]
122122
#[unstable(feature = "unsafe_pinned", issue = "125735")]
123-
pub const fn raw_get(this: *const Self) -> *const T {
124-
this as *const T
123+
pub const fn raw_get(this: *const Self) -> *mut T {
124+
this as *const T as *mut T
125125
}
126126

127127
/// Gets a mutable pointer to the wrapped value.

0 commit comments

Comments
 (0)