Skip to content

Commit

Permalink
style(fmt): rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif committed Oct 24, 2024
1 parent 29f67f6 commit 87bdddf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zellij-utils/src/input/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ impl Action {
None
}
}) {
should_start_layout_commands_suspended = true;
should_start_layout_commands_suspended = true;
(
layout_url.to_owned(),
Layout::stringified_from_url(layout_url)
Expand Down
10 changes: 8 additions & 2 deletions zellij-utils/src/input/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,10 @@ impl Layout {
None,
);
if should_start_layout_commands_suspended {
layout.iter_mut().next().map(|l| l.recursively_add_start_suspended_including_template(Some(true)));
layout
.iter_mut()
.next()
.map(|l| l.recursively_add_start_suspended_including_template(Some(true)));
}
layout
}
Expand Down Expand Up @@ -1495,7 +1498,10 @@ impl Layout {
}
}
}
pub fn recursively_add_start_suspended_including_template(&mut self, start_suspended: Option<bool>) {
pub fn recursively_add_start_suspended_including_template(
&mut self,
start_suspended: Option<bool>,
) {
if let Some((tiled_panes_template, floating_panes_template)) = self.template.as_mut() {
tiled_panes_template.recursively_add_start_suspended(start_suspended);
for floating_pane in floating_panes_template.iter_mut() {
Expand Down

0 comments on commit 87bdddf

Please sign in to comment.