aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_plugins')
-rw-r--r--components/script_plugins/webidl_must_inherit.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs
index 8344783befd..89233bb943e 100644
--- a/components/script_plugins/webidl_must_inherit.rs
+++ b/components/script_plugins/webidl_must_inherit.rs
@@ -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
)
}
}