diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-01-25 23:46:54 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 01:01:00 +0800 |
commit | 1a6154197b7ebbd33308a8d3bbcb1282036725f4 (patch) | |
tree | b55a0a77a6b32087f8dd54539dd7087058d58f08 /components/gfx/text | |
parent | 11cedc7b945fdda80137f67d0196047292ac4415 (diff) | |
download | servo-1a6154197b7ebbd33308a8d3bbcb1282036725f4.tar.gz servo-1a6154197b7ebbd33308a8d3bbcb1282036725f4.zip |
Use specific assertion for gfx text shaping harfbuzz
Diffstat (limited to 'components/gfx/text')
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 2 |
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, |