Browse Source

make clippy happy

Jonathan Kelley 2 năm trước cách đây
mục cha
commit
14a1039808
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/button.rs

+ 1 - 1
examples/button.rs

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