mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #6573 - Ms2ger:warnings, r=jdm
Don't lose a possible error in <SpecificFragmentInfo as fmt::Debug>::fmt. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6573) <!-- Reviewable:end -->
This commit is contained in:
commit
effe569e32
1 changed files with 2 additions and 3 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue