auto merge of #14276 : aochagavia/rust/pr, r=alexcrichton
This commit is contained in:
commit
4b81b6d5f4
@ -359,7 +359,7 @@ impl<T> RawPtr<T> for *T {
|
||||
if self.is_null() {
|
||||
None
|
||||
} else {
|
||||
Some(mem::transmute(*self))
|
||||
Some(&**self)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -384,7 +384,7 @@ impl<T> RawPtr<T> for *mut T {
|
||||
if self.is_null() {
|
||||
None
|
||||
} else {
|
||||
Some(mem::transmute(*self))
|
||||
Some(&**self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user