style: use rustfmt

This commit is contained in:
XOR-op 2023-10-04 22:22:27 -04:00
parent dfdebed390
commit 98de71e6fe
3 changed files with 4 additions and 7 deletions

View file

@ -43,11 +43,8 @@ impl App {
fn dispatch_quit(&mut self, write_cwd_file: bool) {
if let Some(p) = &BOOT.cwd_file {
let cwd = if write_cwd_file {
self.cx.manager.cwd().as_os_str()
} else {
&BOOT.cwd.as_os_str()
};
let cwd =
if write_cwd_file { self.cx.manager.cwd().as_os_str() } else { &BOOT.cwd.as_os_str() };
#[cfg(target_os = "windows")]
{

View file

@ -55,7 +55,7 @@ impl Executor {
fn manager(cx: &mut Ctx, exec: &Exec) -> bool {
match exec.cmd.as_str() {
"escape" => cx.manager.active_mut().escape(),
"quit" => cx.manager.quit(&cx.tasks,!exec.named.contains_key("no-cwd-file")),
"quit" => cx.manager.quit(&cx.tasks, !exec.named.contains_key("no-cwd-file")),
"close" => cx.manager.close(&cx.tasks),
"suspend" => cx.manager.suspend(),

View file

@ -113,7 +113,7 @@ impl Manager {
if self.tabs.len() > 1 {
return self.tabs.close(self.tabs.idx());
}
self.quit(tasks,true)
self.quit(tasks, true)
}
pub fn suspend(&mut self) -> bool {