From 95feb0a832866e87e2a75ee00d763aa945d2f1df Mon Sep 17 00:00:00 2001 From: Muhannad Alrusayni Date: Sat, 4 Jan 2020 01:39:31 +0300 Subject: [PATCH] Remove unnecessary `impl Debug for EventHandler` --- src/virtual_dom/listener.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/virtual_dom/listener.rs b/src/virtual_dom/listener.rs index d4fa4c58b..742211426 100644 --- a/src/virtual_dom/listener.rs +++ b/src/virtual_dom/listener.rs @@ -24,13 +24,6 @@ impl PartialEq for EventHandler { } } -// TODO: try to print Ms too, maybe by restricting Ms: Debug ? -impl fmt::Debug for EventHandler { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("EventHandler<_>") - } -} - impl EventHandler { pub fn call(&self, event: web_sys::Event) -> Ms { (self.0)(event)