瀏覽代碼

fix: enable default for any eventhandler

Jonathan Kelley 3 年之前
父節點
當前提交
578c1dc069
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core/src/nodes.rs

+ 1 - 1
packages/core/src/nodes.rs

@@ -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),