diff --git a/crates/forky/forky_web/src/dom_utils/html_event_listener.rs b/crates/forky/forky_web/src/dom_utils/html_event_listener.rs index cc61c043..cdf2c6b2 100644 --- a/crates/forky/forky_web/src/dom_utils/html_event_listener.rs +++ b/crates/forky/forky_web/src/dom_utils/html_event_listener.rs @@ -17,6 +17,7 @@ pub struct HtmlEventListener { } impl HtmlEventListener { + #[must_use] pub fn new(name: &'static str, f: F) -> Self where F: FnMut(T) + 'static, @@ -24,6 +25,7 @@ impl HtmlEventListener { { Self::new_with_target(name, f, window().unwrap().unchecked_into()) } + #[must_use] pub fn new_with_target( name: &'static str, f: F,