Make benches compile

This commit is contained in:
Jonathan Kelley committed 2024-01-30 18:29:49 -08:00
1 parent 09e14f1936
commit 69f9bb6b65
9 files changed
+60 -62

No files matched your search

+6 -4
View File
@@ -13,12 +13,14 @@ fn main() {
fn app() -> Element {
let mut focused = use_signal(|| true);
use_wry_event_handler(move |event, _| match event {
WryEvent::WindowEvent {
use_wry_event_handler(move |event, _| {
if let WryEvent::WindowEvent {
event: WindowEvent::Focused(new_focused),
..
} => focused.set(*new_focused),
_ => {}
} = event
{
focused.set(*new_focused)
}
});
rsx! {