diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index 112fc285b59..a7dd652b9f5 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -322,7 +322,7 @@ impl<'a> FontHandle { let x_scale = (metrics.x_ppem as f64) / em_size as f64; // If this isn't true then we're scaling one of the axes wrong - assert!(metrics.x_ppem == metrics.y_ppem); + assert_eq!(metrics.x_ppem, metrics.y_ppem); Au::from_f64_px(value * x_scale) }