mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Don't lose a possible error in <SpecificFragmentInfo as fmt::Debug>::fmt.
This commit is contained in:
parent
c76720d67c
commit
f71ca62522
1 changed files with 2 additions and 3 deletions
|
@ -213,11 +213,10 @@ impl fmt::Debug for SpecificFragmentInfo {
|
||||||
match *self {
|
match *self {
|
||||||
SpecificFragmentInfo::ScannedText(ref info) => {
|
SpecificFragmentInfo::ScannedText(ref info) => {
|
||||||
write!(f, " \"{}\"", info.run.text.slice_chars(info.range.begin().get() as usize,
|
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