aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2018-01-25 23:46:54 +0800
committerCYBAI <cyb.ai.815@gmail.com>2018-01-26 01:01:00 +0800
commit1a6154197b7ebbd33308a8d3bbcb1282036725f4 (patch)
treeb55a0a77a6b32087f8dd54539dd7087058d58f08
parent11cedc7b945fdda80137f67d0196047292ac4415 (diff)
downloadservo-1a6154197b7ebbd33308a8d3bbcb1282036725f4.tar.gz
servo-1a6154197b7ebbd33308a8d3bbcb1282036725f4.zip
Use specific assertion for gfx text shaping harfbuzz
-rw-r--r--components/gfx/text/shaping/harfbuzz.rs2
1 files changed, 1 insertions, 1 deletions
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,