diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-26 18:15:42 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-26 18:15:42 +0200 |
| commit | 9c7f31870b4e1bf37df79ebbe1df9a56df83d878 (patch) | |
| tree | 099499cd93e9da971aa8c30feccb1f652dc1f72e /library/src | |
| parent | f4b764e1228d47271ffda61dd03fdda50f7cda46 (diff) | |
Fix warnings
Diffstat (limited to 'library/src')
| -rw-r--r-- | library/src/text/shaping.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/src/text/shaping.rs b/library/src/text/shaping.rs index 764bde4f..ec8812fe 100644 --- a/library/src/text/shaping.rs +++ b/library/src/text/shaping.rs @@ -1,7 +1,5 @@ use std::borrow::Cow; -use std::cmp::Ordering; use std::ops::Range; -use std::panic; use std::str::FromStr; use az::SaturatingAs; @@ -963,7 +961,7 @@ fn assert_glyph_ranges_in_order(glyphs: &[ShapedGlyph], dir: Dir) { let b = &glyphs[i + 1]; let ord = a.range.start.cmp(&b.range.start); let ord = if dir.is_positive() { ord } else { ord.reverse() }; - if ord == Ordering::Greater { + if ord == std::cmp::Ordering::Greater { panic!( "glyph ranges should be monotonically {}, \ but found glyphs out of order:\n\n\ |
