auto merge of #14276 : aochagavia/rust/pr, r=alexcrichton

This commit is contained in:
bors 2014-05-18 19:51:26 -07:00
commit 4b81b6d5f4

View File

@ -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)
}
}
}