From f8a8ee3e292c64f31c3f26f93c8f71b5394705a7 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Fri, 8 Mar 2024 12:45:23 -0600 Subject: [PATCH] fix clippy --- packages/desktop/src/hooks.rs | 2 +- packages/fullstack/src/hooks/server_future.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop/src/hooks.rs b/packages/desktop/src/hooks.rs index 2a35a2d66..03ceeb7b0 100644 --- a/packages/desktop/src/hooks.rs +++ b/packages/desktop/src/hooks.rs @@ -58,7 +58,7 @@ pub fn use_global_shortcut( handler: impl FnMut() + 'static, ) -> Result { // wrap the user's handler in something that will carry the scope/runtime with it - let mut cb = use_callback(handler); + let cb = use_callback(handler); use_hook_with_cleanup( move || window().create_shortcut(accelerator.accelerator(), move || cb.call()), diff --git a/packages/fullstack/src/hooks/server_future.rs b/packages/fullstack/src/hooks/server_future.rs index 63e217c16..1194f38d5 100644 --- a/packages/fullstack/src/hooks/server_future.rs +++ b/packages/fullstack/src/hooks/server_future.rs @@ -9,7 +9,7 @@ where T: Serialize + DeserializeOwned + 'static, F: Future + 'static, { - let mut cb = use_callback(_future); + let cb = use_callback(_future); let mut first_run = use_hook(|| CopyValue::new(true)); let resource = use_resource(move || {