Skip to content

Commit

Permalink
auto merge of rust-lang#14276 : aochagavia/rust/pr, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed May 19, 2014
2 parents 50b26df + 9a8ef91 commit 4b81b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ptr.rs
Expand Up @@ -359,7 +359,7 @@ impl<T> RawPtr<T> for *T {
if self.is_null() {
None
} else {
Some(mem::transmute(*self))
Some(&**self)
}
}
}
Expand All @@ -384,7 +384,7 @@ impl<T> RawPtr<T> for *mut T {
if self.is_null() {
None
} else {
Some(mem::transmute(*self))
Some(&**self)
}
}
}
Expand Down

0 comments on commit 4b81b6d

Please sign in to comment.