fix clippy

This commit is contained in:
Evan Almloff committed 2023-09-04 08:33:56 -05:00
1 parent d1575b40d1
commit e86c1647d8
2 files changed
+4 -8

No files matched your search

+3 -6
View File
@@ -366,13 +366,10 @@ impl WryWindowEventHandlerInner {
target: &EventLoopWindowTarget<UserWindowEvent>,
) {
// if this event does not apply to the window this listener cares about, return
match event {
Event::WindowEvent { window_id, .. } => {
if *window_id != self.window_id {
return;
}
if let Event::WindowEvent { window_id, .. } = event {
if *window_id != self.window_id {
return;
}
_ => (),
}
(self.handler)(event, target)
}