浏览代码

tweak: example

Jonathan Kelley 3 年之前
父节点
当前提交
1c691e899c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/framework_benchmark.rs

+ 1 - 1
examples/framework_benchmark.rs

@@ -91,7 +91,7 @@ fn app(cx: Scope) -> Element {
 struct ActionButtonProps<'a> {
     name: &'a str,
     id: &'a str,
-    onclick: EventHandler<'a, ()>,
+    onclick: EventHandler<'a>,
 }
 
 fn ActionButton<'a>(cx: Scope<'a, ActionButtonProps<'a>>) -> Element {