diff options
-rw-r--r-- | components/layout/fragment.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index b9a2713b9a4..edaf13d862a 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -213,11 +213,10 @@ impl fmt::Debug for SpecificFragmentInfo { match *self { SpecificFragmentInfo::ScannedText(ref info) => { write!(f, " \"{}\"", info.run.text.slice_chars(info.range.begin().get() as usize, - info.range.end().get() as usize)); + info.range.end().get() as usize)) } - _ => {} + _ => Ok(()) } - Ok(()) } } |