From f71ca6252239f520939d9590f42ebdbac5840133 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 8 Jul 2015 10:23:55 +0200 Subject: [PATCH] Don't lose a possible error in ::fmt. --- components/layout/fragment.rs | 5 ++--- 1 file 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(()) } }