Use specific assertion for gfx text shaping harfbuzz

This commit is contained in:
CYBAI 2018-01-25 23:46:54 +08:00
parent 11cedc7b94
commit 1a6154197b

View file

@ -64,7 +64,7 @@ impl ShapedGlyphData {
let mut pos_count = 0; let mut pos_count = 0;
let pos_infos = hb_buffer_get_glyph_positions(buffer, &mut pos_count); let pos_infos = hb_buffer_get_glyph_positions(buffer, &mut pos_count);
assert!(!pos_infos.is_null()); assert!(!pos_infos.is_null());
assert!(glyph_count == pos_count); assert_eq!(glyph_count, pos_count);
ShapedGlyphData { ShapedGlyphData {
count: glyph_count as usize, count: glyph_count as usize,