fix: enable default for any eventhandler

This commit is contained in:
Jonathan Kelley committed 2022-01-29 10:42:06 -05:00
1 parent d570bb6c42
commit 578c1dc069
1 file changed
+1 -1
+1 -1
View File
@@ -355,7 +355,7 @@ pub struct EventHandler<'bump, T = ()> {
pub callback: RefCell<Option<ExternalListenerCallback<'bump, T>>>,
}
impl<'a> Default for EventHandler<'a> {
impl<'a, T> Default for EventHandler<'a, T> {
fn default() -> Self {
Self {
callback: RefCell::new(None),