Make clippy happy

This commit is contained in:
Christoph Grabo 2022-02-13 20:57:30 +01:00
parent 934d5998db
commit 932ad01644
No known key found for this signature in database
GPG key ID: 1FE689DF1A1AEE6C

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),