diff options
Diffstat (limited to 'src/libcore/unstable/global.rs')
| -rw-r--r-- | src/libcore/unstable/global.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/unstable/global.rs b/src/libcore/unstable/global.rs index 41d0842002f..eac686e28d1 100644 --- a/src/libcore/unstable/global.rs +++ b/src/libcore/unstable/global.rs @@ -25,7 +25,7 @@ which case the value should be cached locally whenever possible to avoid hitting the mutex. */ -use cast::{transmute, reinterpret_cast}; +use cast::{transmute}; use clone::Clone; use kinds::Owned; use libc::{c_void}; @@ -223,7 +223,7 @@ fn get_global_state() -> Exclusive<GlobalState> { fn key_ptr<T:Owned>(key: GlobalDataKey<T>) -> uint { unsafe { - let closure: Closure = reinterpret_cast(&key); + let closure: Closure = transmute(key); return transmute(closure.code); } } |
