mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove an unnecessary cast::transmute call.
This commit is contained in:
parent
34f89b27b3
commit
f58c7874b2
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ pub struct Reflector {
|
||||||
|
|
||||||
impl Reflector {
|
impl Reflector {
|
||||||
pub fn get_jsobject(&self) -> *JSObject {
|
pub fn get_jsobject(&self) -> *JSObject {
|
||||||
unsafe { cast::transmute(self.object) }
|
self.object
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_jsobject(&mut self, object: *JSObject) {
|
pub fn set_jsobject(&mut self, object: *JSObject) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue