Skip to content

Commit

Permalink
Use .clone() rather than Rc::clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
maroider committed Jul 10, 2021
1 parent e4eff49 commit c732361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<T: 'static> EventLoop<T> {
let runner_shared = Rc::new(EventLoopRunner::new(thread_msg_target, wait_thread_id));

let thread_msg_sender =
insert_event_target_window_data::<T>(thread_msg_target, Rc::clone(&runner_shared));
insert_event_target_window_data::<T>(thread_msg_target, runner_shared.clone());

raw_input::register_all_mice_and_keyboards_for_raw_input(thread_msg_target);

Expand Down

0 comments on commit c732361

Please sign in to comment.