From c732361a292043dfd02836e48804d6c795982e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20R=C3=B8yset?= Date: Sat, 10 Jul 2021 15:45:49 +0200 Subject: [PATCH] Use `.clone()` rather than `Rc::clone()` --- src/platform_impl/windows/event_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/windows/event_loop.rs b/src/platform_impl/windows/event_loop.rs index 89680491da..bb0891528d 100644 --- a/src/platform_impl/windows/event_loop.rs +++ b/src/platform_impl/windows/event_loop.rs @@ -164,7 +164,7 @@ impl EventLoop { let runner_shared = Rc::new(EventLoopRunner::new(thread_msg_target, wait_thread_id)); let thread_msg_sender = - insert_event_target_window_data::(thread_msg_target, Rc::clone(&runner_shared)); + insert_event_target_window_data::(thread_msg_target, runner_shared.clone()); raw_input::register_all_mice_and_keyboards_for_raw_input(thread_msg_target);