Removed unnecessary transmute
This commit is contained in:
parent
a62395f01c
commit
9a8ef9197b
@ -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