From 1a6154197b7ebbd33308a8d3bbcb1282036725f4 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Thu, 25 Jan 2018 23:46:54 +0800 Subject: Use specific assertion for gfx text shaping harfbuzz --- components/gfx/text/shaping/harfbuzz.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/gfx/text') diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 36e35150ad1..c1b25e42d9b 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -64,7 +64,7 @@ impl ShapedGlyphData { let mut pos_count = 0; let pos_infos = hb_buffer_get_glyph_positions(buffer, &mut pos_count); assert!(!pos_infos.is_null()); - assert!(glyph_count == pos_count); + assert_eq!(glyph_count, pos_count); ShapedGlyphData { count: glyph_count as usize, -- cgit v1.2.3