From 05e7e7554cac8ca1b520f860998f87b2afb9609e Mon Sep 17 00:00:00 2001 From: Andrii Zymohliad Date: Sun, 28 Jul 2024 21:10:33 +0300 Subject: [PATCH] Fix clippy errors --- xilem/examples/data_thread.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xilem/examples/data_thread.rs b/xilem/examples/data_thread.rs index 1089bf068..f9778687e 100644 --- a/xilem/examples/data_thread.rs +++ b/xilem/examples/data_thread.rs @@ -33,7 +33,7 @@ fn data_thread(proxy_receiver: mpsc::Receiver>) { let mut number = 0; while let Ok(()) = proxy.message(number) { number += 1; - thread::sleep(time::Duration::from_secs(1)) + thread::sleep(time::Duration::from_secs(1)); } } } @@ -47,5 +47,5 @@ fn main() { thread::spawn(move || data_thread(proxy_receiver)); Xilem::new(data, app_logic) .run_windowed(EventLoop::with_user_event(), "Centered Flex".into()) - .unwrap() + .unwrap(); }