auto merge of #14276 : aochagavia/rust/pr, r=alexcrichton
This commit is contained in:
commit
4b81b6d5f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue