mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove cast::transmute
This commit is contained in:
parent
7716c2bc2f
commit
70578e6350
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue