We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62395f commit 9a8ef91Copy full SHA for 9a8ef91
src/libcore/ptr.rs
@@ -359,7 +359,7 @@ impl<T> RawPtr<T> for *T {
359
if self.is_null() {
360
None
361
} else {
362
- Some(mem::transmute(*self))
+ Some(&**self)
363
}
364
365
@@ -384,7 +384,7 @@ impl<T> RawPtr<T> for *mut T {
384
385
386
387
388
389
390
0 commit comments