Make clippy happy

This commit is contained in:
Christoph Grabo committed 2022-02-13 20:57:30 +01:00
1 parent 934d5998db
commit 932ad01644
1 file changed
+2 -2
+2 -2
View File
@@ -51,9 +51,9 @@ pub(super) fn handler(
Maximize(state) => window.set_maximized(state),
MaximizeToggle => window.set_maximized(!window.is_maximized()),
Fullscreen(state) => {
window.current_monitor().map(|handle| {
if let Some(handle) = window.current_monitor() {
window.set_fullscreen(state.then(|| WryFullscreen::Borderless(Some(handle))));
});
}
}
FocusWindow => window.set_focus(),
Resizable(state) => window.set_resizable(state),