diff options
author | Deokjin Kim <deokjin81.kim@samsung.com> | 2013-10-03 14:39:57 +0900 |
---|---|---|
committer | Deokjin Kim <deokjin81.kim@samsung.com> | 2013-10-03 14:39:57 +0900 |
commit | 70578e635000509f22cdaf91148a51efedce3b9f (patch) | |
tree | 90f65c3df17a68ae23644b078682937c797cf83d | |
parent | 7716c2bc2f13d8af063a9a5f86c27b634dd9511e (diff) | |
download | servo-70578e635000509f22cdaf91148a51efedce3b9f.tar.gz servo-70578e635000509f22cdaf91148a51efedce3b9f.zip |
Remove cast::transmute
-rw-r--r-- | src/components/gfx/text/shaping/harfbuzz.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/gfx/text/shaping/harfbuzz.rs b/src/components/gfx/text/shaping/harfbuzz.rs index 1e74d80b83c..1b3c27af929 100644 --- a/src/components/gfx/text/shaping/harfbuzz.rs +++ b/src/components/gfx/text/shaping/harfbuzz.rs @@ -13,7 +13,6 @@ use servo_util::range::Range; use text::util::{float_to_fixed, fixed_to_float, fixed_to_rounded_int}; use std::cast::transmute; -use std::cast; use std::char; use std::libc::{c_uint, c_int, c_void, c_char}; use std::ptr; @@ -510,7 +509,7 @@ extern fn glyph_h_advance_func(_: *hb_font_t, glyph: hb_codepoint_t, _: *c_void) -> hb_position_t { - let font: *mut Font = unsafe { cast::transmute(font_data as *Font) }; + let font: *mut Font = font_data as *mut Font; assert!(font.is_not_null()); unsafe { |