1
0
Jonathan Kelley 2 жил өмнө
parent
commit
14a1039808
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      examples/button.rs

+ 1 - 1
examples/button.rs

@@ -7,7 +7,7 @@ fn main() {
 fn app(cx: Scope) -> Element {
     cx.render(rsx! {
         button {
-            onclick: |e| async move {
+            onclick: |_| async move {
                 println!("hello, desktop!");
                 tokio::time::sleep(std::time::Duration::from_secs(1)).await;
                 println!("goodbye, desktop!");