Fix debug error

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-08-16 14:13:36 -07:00
parent 99d3d71a0f
commit 8d6a5b41fb
No known key found for this signature in database
GPG key ID: 397D2B00FEA368AA

View file

@ -5,6 +5,7 @@
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
use core::cmp::{max, min};
use core::fmt;
use core::mem;
use core::ops::Range;
use unicode_script::{Script, UnicodeScript};
@ -75,6 +76,12 @@ pub struct ShapeBuffer {
visual_lines: Vec<VisualLine>,
}
impl fmt::Debug for ShapeBuffer {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.pad("ShapeBuffer { .. }")
}
}
fn shape_fallback(
scratch: &mut ShapeBuffer,
glyphs: &mut Vec<ShapeGlyph>,