Don't lose a possible error in <SpecificFragmentInfo as fmt::Debug>::fmt.

This commit is contained in:
Ms2ger 2015-07-08 10:23:55 +02:00
parent c76720d67c
commit f71ca62522

View file

@ -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(())
}
}