Skip to content

Commit ebedb55

Browse files
committed
1.36.0 compatibility
1 parent ea0c189 commit ebedb55

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pool/cas.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,7 @@ impl<T> Ptr<T> {
150150
fn as_raw(&self) -> NonNull<T> {
151151
unsafe {
152152
NonNull::new_unchecked(
153-
anchor::<T>()
154-
.cast::<u8>()
155-
.offset(self.offset() as isize)
156-
.cast(),
153+
(anchor::<T>() as *mut u8).offset(self.offset() as isize) as *mut T
157154
)
158155
}
159156
}

0 commit comments

Comments
 (0)