Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Feb 13, 2024
1 parent 3c5dcec commit b430656
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/cosmic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ impl<T: Application> Cosmic<T> {
#[cfg(not(feature = "wayland"))]
#[allow(clippy::unused_self)]
pub fn close(&mut self) -> iced::Command<super::Message<T::Message>> {
iced::Command::single(Action::Window(WindowAction::Close(self.app.main_window_id())))
iced::Command::single(Action::Window(WindowAction::Close(
self.app.main_window_id(),
)))
}

#[allow(clippy::too_many_lines)]
Expand Down Expand Up @@ -321,7 +323,9 @@ impl<T: Application> Cosmic<T> {
keyboard_nav::Message::Escape => return self.app.on_escape(),
keyboard_nav::Message::Search => return self.app.on_search(),

keyboard_nav::Message::Fullscreen => return command::toggle_maximize(Some(self.app.main_window_id())),
keyboard_nav::Message::Fullscreen => {
return command::toggle_maximize(Some(self.app.main_window_id()))
}
},

Message::ContextDrawer(show) => {
Expand Down

0 comments on commit b430656

Please sign in to comment.