Make clippy happy on examples
This commit is contained in:
3 files changed
+4
-5
No files matched your search
+2
-3
@@ -6,8 +6,7 @@
|
||||
//! We also add a global shortcut to toggle the overlay on and off, so you could build a raycast-type app with this.
|
||||
|
||||
use dioxus::desktop::{
|
||||
tao::dpi::PhysicalPosition, use_global_shortcut, use_wry_event_handler, LogicalSize,
|
||||
WindowBuilder,
|
||||
tao::dpi::PhysicalPosition, use_global_shortcut, LogicalSize, WindowBuilder,
|
||||
};
|
||||
use dioxus::prelude::*;
|
||||
|
||||
@@ -18,7 +17,7 @@ fn main() {
|
||||
fn app() -> Element {
|
||||
let mut show_overlay = use_signal(|| true);
|
||||
|
||||
use_global_shortcut("cmd+g", move || show_overlay.toggle());
|
||||
_ = use_global_shortcut("cmd+g", move || show_overlay.toggle());
|
||||
|
||||
rsx! {
|
||||
if show_overlay() {
|
||||
|
||||
Reference in new issue
Block a user