Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 14, 2024
1 parent be4c005 commit c61f83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub(crate) struct Menu {

impl Drop for Menu {
fn drop(&mut self) {
for hwnd in self.hwnds.keys().map(|h| *h).collect::<Vec<_>>() {
for hwnd in self.hwnds.keys().copied().collect::<Vec<_>>() {
let _ = self.remove_for_hwnd(hwnd);
}

Expand Down Expand Up @@ -1052,7 +1052,7 @@ unsafe extern "system" fn menu_subclass_proc(
let menu = dwrefdata as *mut Box<Menu>;
let theme: MenuTheme = std::mem::transmute(wparam);
(*menu).hwnds.insert(hwnd, theme);
return 0;
0
}

WM_COMMAND => {
Expand Down

0 comments on commit c61f83b

Please sign in to comment.