From 11cedc7b945fdda80137f67d0196047292ac4415 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Thu, 25 Jan 2018 23:46:36 +0800 Subject: [PATCH] Use specific assertion for gfx platform freetype font --- components/gfx/platform/freetype/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }