From d76291ee91b260b07eb6da08776dc4595871d0a6 Mon Sep 17 00:00:00 2001 From: "aydin.kim" Date: Mon, 22 Apr 2013 10:46:36 +0900 Subject: [PATCH] fix build err --- src/servo-gfx/platform/linux/font.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servo-gfx/platform/linux/font.rs b/src/servo-gfx/platform/linux/font.rs index 0ca887f67d4..2202885ee3d 100644 --- a/src/servo-gfx/platform/linux/font.rs +++ b/src/servo-gfx/platform/linux/font.rs @@ -221,7 +221,7 @@ impl FontHandleMethods for FontHandle { } } -pub impl FontHandle { +pub impl<'self> FontHandle { priv fn set_char_size(face: FT_Face, pt_size: float) -> Result<(), ()>{ let char_width = float_to_fixed_ft(pt_size) as FT_F26Dot6; let char_height = float_to_fixed_ft(pt_size) as FT_F26Dot6; @@ -271,7 +271,7 @@ pub impl FontHandle { Ok(FontHandle { source: FontSourceFile(file), face: face }) } - priv fn get_face_rec(&self) -> &'self FT_FaceRec { + priv fn get_face_rec(&'self self) -> &'self FT_FaceRec { unsafe { &(*self.face) }