mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
fix clippy
This commit is contained in:
parent
ffc49530f6
commit
f8a8ee3e29
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ pub fn use_global_shortcut(
|
|||
handler: impl FnMut() + 'static,
|
||||
) -> Result<ShortcutHandle, ShortcutRegistryError> {
|
||||
// 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()),
|
||||
|
|
|
@ -9,7 +9,7 @@ where
|
|||
T: Serialize + DeserializeOwned + 'static,
|
||||
F: Future<Output = T> + '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 || {
|
||||
|
|
Loading…
Reference in a new issue