Skip to content

Commit

Permalink
Simplify ParentMismatchError.fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
krk committed Apr 20, 2019
1 parent 0d3bee2 commit 763fc8a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/script_plugins/webidl_must_inherit.rs
Expand Up @@ -34,15 +34,10 @@ pub struct ParentMismatchError {

impl fmt::Display for ParentMismatchError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let ParentMismatchError {
name,
rust_parent,
webidl_parent,
} = self;
write!(
f,
"webidl-rust inheritance mismatch, rust: {:?}, rust parent: {:?}, webidl parent: {:?}",
&name, &rust_parent, &webidl_parent
self.name, self.rust_parent, self.webidl_parent
)
}
}
Expand Down

0 comments on commit 763fc8a

Please sign in to comment.