mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Simplify ParentMismatchError.fmt.
This commit is contained in:
parent
0d3bee28c8
commit
763fc8a1f2
1 changed files with 1 additions and 6 deletions
|
@ -34,15 +34,10 @@ pub struct ParentMismatchError {
|
||||||
|
|
||||||
impl fmt::Display for ParentMismatchError {
|
impl fmt::Display for ParentMismatchError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
let ParentMismatchError {
|
|
||||||
name,
|
|
||||||
rust_parent,
|
|
||||||
webidl_parent,
|
|
||||||
} = self;
|
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"webidl-rust inheritance mismatch, rust: {:?}, rust parent: {:?}, webidl parent: {:?}",
|
"webidl-rust inheritance mismatch, rust: {:?}, rust parent: {:?}, webidl parent: {:?}",
|
||||||
&name, &rust_parent, &webidl_parent
|
self.name, self.rust_parent, self.webidl_parent
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue