diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-09 13:24:10 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-15 13:55:40 -0700 |
commit | be061a9aa0384fc36b42f4f8902b6c8cb76d30cc (patch) | |
tree | 4ede58c0b6442422f720684686cd4715dc143d2c /src/components/gfx/platform/linux/font.rs | |
parent | ffe60ea02704c0bd4545a194bff3f2feafd0133c (diff) | |
download | servo-be061a9aa0384fc36b42f4f8902b6c8cb76d30cc.tar.gz servo-be061a9aa0384fc36b42f4f8902b6c8cb76d30cc.zip |
Library changes
Diffstat (limited to 'src/components/gfx/platform/linux/font.rs')
-rw-r--r-- | src/components/gfx/platform/linux/font.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/gfx/platform/linux/font.rs b/src/components/gfx/platform/linux/font.rs index 8ae4580fcf3..57a36e6faed 100644 --- a/src/components/gfx/platform/linux/font.rs +++ b/src/components/gfx/platform/linux/font.rs @@ -262,7 +262,7 @@ impl<'self> FontHandle { let mut face: FT_Face = ptr::null(); let face_index = 0 as FT_Long; - do str::as_c_str(file) |file_str| { + do file.as_c_str |file_str| { FT_New_Face(ft_ctx, file_str, face_index, ptr::to_mut_unsafe_ptr(&mut face)); } @@ -289,7 +289,7 @@ impl<'self> FontHandle { let mut face: FT_Face = ptr::null(); let face_index = 0 as FT_Long; - do str::as_c_str(file) |file_str| { + do file.as_c_str |file_str| { FT_New_Face(ft_ctx, file_str, face_index, ptr::to_mut_unsafe_ptr(&mut face)); } |