diff options
author | krk <keremkat@gmail.com> | 2019-04-16 22:36:23 +0200 |
---|---|---|
committer | krk <keremkat@gmail.com> | 2019-04-20 22:39:38 +0200 |
commit | 763fc8a1f2bb6a00098a63dbd68db65f423e4b6e (patch) | |
tree | 8e8b7546829f05e53cdee79d5cd8e522543ccd08 /components/script_plugins | |
parent | 0d3bee28c801203689fc7e89de175bf5f314a5b7 (diff) | |
download | servo-763fc8a1f2bb6a00098a63dbd68db65f423e4b6e.tar.gz servo-763fc8a1f2bb6a00098a63dbd68db65f423e4b6e.zip |
Simplify ParentMismatchError.fmt.
Diffstat (limited to 'components/script_plugins')
-rw-r--r-- | components/script_plugins/webidl_must_inherit.rs | 7 |
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 ) } } |