diff --git a/examples/all_events.rs b/examples/all_events.rs index d3c33d1317..c60a6a726e 100644 --- a/examples/all_events.rs +++ b/examples/all_events.rs @@ -12,7 +12,7 @@ fn main() { fn app() -> Element { // Using a VecDeque so its cheap to pop old events off the front - let mut events = use_signal(|| VecDeque::new()); + let mut events = use_signal(VecDeque::new); // All events and their data implement Debug, so we can re-cast them as Rc instead of their specific type let mut log_event = move |event: Rc| { diff --git a/examples/optional_props.rs b/examples/optional_props.rs index d4bf5755ce..cf3c0c08f6 100644 --- a/examples/optional_props.rs +++ b/examples/optional_props.rs @@ -58,7 +58,7 @@ struct ButtonProps { type SthElse = Option; -#[allow(non_snake_casea)] +#[allow(non_snake_case)] fn Button(props: ButtonProps) -> Element { rsx! { button { diff --git a/examples/overlay.rs b/examples/overlay.rs index 15795fc3e2..570c878e56 100644 --- a/examples/overlay.rs +++ b/examples/overlay.rs @@ -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() {