aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/font.rs')
-rw-r--r--components/gfx/font.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/font.rs b/components/gfx/font.rs
index ba11c2a63cc..4cf902e28a2 100644
--- a/components/gfx/font.rs
+++ b/components/gfx/font.rs
@@ -28,7 +28,7 @@ use util::geometry::Au;
// needed by the text shaper as well as access to the underlying font
// resources needed by the graphics layer to draw glyphs.
-pub trait FontHandleMethods {
+pub trait FontHandleMethods: Sized {
fn new_from_template(fctx: &FontContextHandle, template: Arc<FontTemplateData>, pt_size: Option<Au>)
-> Result<Self,()>;
fn template(&self) -> Arc<FontTemplateData>;