소스 검색

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 {