Make clippy happy on examples

This commit is contained in:
Jonathan Kelley committed 2024-02-14 13:50:10 -08:00
1 parent cfc119cce2
commit cdae3d67f7
3 files changed
+4 -5

No files matched your search

+2 -3
View File
@@ -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() {