style(fmt): rustfmt

This commit is contained in:
Aram Drevekenin 2024-10-24 16:29:32 +02:00
parent 4e4df6ddee
commit 9091bc87be
4 changed files with 9 additions and 7 deletions

View File

@ -2836,7 +2836,8 @@ pub(crate) fn screen_thread_main(
let all_tabs = screen.get_tabs_mut();
for tab in all_tabs.values_mut() {
if tab.has_pane_with_pid(&pane_id_to_replace) {
tab.replace_pane_with_editor_pane(pid, pane_id_to_replace).non_fatal();
tab.replace_pane_with_editor_pane(pid, pane_id_to_replace)
.non_fatal();
found = true;
break;
}

View File

@ -1297,7 +1297,8 @@ impl Tab {
self.os_api,
self.senders,
self.character_cell_size
).non_fatal();
)
.non_fatal();
self.insert_scrollback_editor_replaced_pane(replaced_pane, pid);
},
None => {
@ -4096,7 +4097,8 @@ impl Tab {
match self.suppressed_panes.remove(&pane_id) {
Some(pane) => {
self.show_floating_panes();
self.add_floating_pane(pane.1, pane_id, None, None).non_fatal();
self.add_floating_pane(pane.1, pane_id, None, None)
.non_fatal();
self.floating_panes.focus_pane_for_all_clients(pane_id);
},
None => {

View File

@ -10,7 +10,7 @@ use thiserror::Error;
use std::convert::TryFrom;
use super::keybinds::Keybinds;
use super::layout::{RunPluginOrAlias};
use super::layout::RunPluginOrAlias;
use super::options::Options;
use super::plugins::{PluginAliases, PluginsConfigError};
use super::theme::{Themes, UiConfig};

View File

@ -5,9 +5,8 @@ use std::path::PathBuf;
use crate::{
input::layout::PluginUserConfiguration,
input::layout::{
FloatingPaneLayout, Layout, LayoutConstraint, PercentOrFixed, Run,
RunPluginOrAlias, SplitDirection, SplitSize, SwapFloatingLayout, SwapTiledLayout,
TiledPaneLayout,
FloatingPaneLayout, Layout, LayoutConstraint, PercentOrFixed, Run, RunPluginOrAlias,
SplitDirection, SplitSize, SwapFloatingLayout, SwapTiledLayout, TiledPaneLayout,
},
pane_size::{Constraint, PaneGeom},
};