!fixup cargo fmt
This commit is contained in:
parent
485339c584
commit
f323880fb7
3 changed files with 12 additions and 12 deletions
|
|
@ -10,12 +10,12 @@ mod thread_bus;
|
||||||
mod ui;
|
mod ui;
|
||||||
mod wasm_vm;
|
mod wasm_vm;
|
||||||
|
|
||||||
|
use log::info;
|
||||||
use std::{
|
use std::{
|
||||||
path::PathBuf,
|
path::PathBuf,
|
||||||
sync::{Arc, Mutex, RwLock},
|
sync::{Arc, Mutex, RwLock},
|
||||||
thread,
|
thread,
|
||||||
};
|
};
|
||||||
use log::info;
|
|
||||||
use zellij_utils::zellij_tile;
|
use zellij_utils::zellij_tile;
|
||||||
|
|
||||||
use wasmer::Store;
|
use wasmer::Store;
|
||||||
|
|
|
||||||
|
|
@ -258,14 +258,14 @@ impl Layout {
|
||||||
post_tab = true;
|
post_tab = true;
|
||||||
// Leaf
|
// Leaf
|
||||||
} else if post_tab {
|
} else if post_tab {
|
||||||
if curr_post_layout.is_empty() {
|
if curr_post_layout.is_empty() {
|
||||||
let mut part_no_tab = part.clone();
|
let mut part_no_tab = part.clone();
|
||||||
part_no_tab.tabs.clear();
|
part_no_tab.tabs.clear();
|
||||||
part_no_tab.parts.clear();
|
part_no_tab.parts.clear();
|
||||||
post_tab_layout.push(part_no_tab);
|
post_tab_layout.push(part_no_tab);
|
||||||
} else {
|
} else {
|
||||||
post_tab_layout.append(&mut curr_post_layout);
|
post_tab_layout.append(&mut curr_post_layout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(pre_tab_layout, post_tab_layout, tabs)
|
(pre_tab_layout, post_tab_layout, tabs)
|
||||||
|
|
|
||||||
|
|
@ -532,7 +532,7 @@ fn no_tabs_specified_should_panic() {
|
||||||
// TODO Make error out of this
|
// TODO Make error out of this
|
||||||
// Only untill #631 is fixed
|
// Only untill #631 is fixed
|
||||||
fn multiple_tabs_specified_should_panic() {
|
fn multiple_tabs_specified_should_panic() {
|
||||||
let path = layout_test_dir("multiple-tabs-should-panic.yaml".into());
|
let path = layout_test_dir("multiple-tabs-should-panic.yaml".into());
|
||||||
let layout = Layout::new(&path);
|
let layout = Layout::new(&path);
|
||||||
let _main_layout = layout.unwrap().construct_main_layout();
|
let _main_layout = layout.unwrap().construct_main_layout();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue