From 8d6a5b41fb9b51596362b00670245999c8036479 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Wed, 16 Aug 2023 14:13:36 -0700 Subject: [PATCH] Fix debug error Signed-off-by: John Nunley --- src/shape.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shape.rs b/src/shape.rs index 43332d2..292cda0 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -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, } +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,