mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Run clippy
This commit is contained in:
parent
d648eaa2ad
commit
0a9dbc4047
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ use leptos::*;
|
||||||
/// Without user permission, reading or altering the clipboard contents is not permitted.
|
/// Without user permission, reading or altering the clipboard contents is not permitted.
|
||||||
///
|
///
|
||||||
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
||||||
/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).
|
/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).
|
||||||
///
|
///
|
||||||
/// ## Demo
|
/// ## Demo
|
||||||
///
|
///
|
||||||
|
@ -89,7 +89,7 @@ pub fn use_clipboard_with_options(
|
||||||
};
|
};
|
||||||
|
|
||||||
if is_supported.get() && read {
|
if is_supported.get() && read {
|
||||||
let _ = use_event_listener(window(), copy, update_text.clone());
|
let _ = use_event_listener(window(), copy, update_text);
|
||||||
let _ = use_event_listener(window(), cut, update_text);
|
let _ = use_event_listener(window(), cut, update_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue