Skip to content

Commit

Permalink
Remove unnecessary impl Debug for EventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhannadAlrusayni authored and MartinKavik committed Jan 4, 2020
1 parent 8785844 commit 95feb0a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/virtual_dom/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ impl<Ms> PartialEq for EventHandler<Ms> {
}
}

// TODO: try to print Ms too, maybe by restricting Ms: Debug ?
impl<Ms> fmt::Debug for EventHandler<Ms> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("EventHandler<_>")
}
}

impl<Ms> EventHandler<Ms> {
pub fn call(&self, event: web_sys::Event) -> Ms {
(self.0)(event)
Expand Down

0 comments on commit 95feb0a

Please # to comment.