From 98de71e6fe368f756113a72ec743cdba0a176ef9 Mon Sep 17 00:00:00 2001 From: XOR-op <17672363+XOR-op@users.noreply.github.com> Date: Wed, 4 Oct 2023 22:22:27 -0400 Subject: [PATCH] style: use rustfmt --- app/src/app.rs | 7 ++----- app/src/executor.rs | 2 +- core/src/manager/manager.rs | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/app.rs b/app/src/app.rs index d4b28b30..3ba8fb34 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -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")] { diff --git a/app/src/executor.rs b/app/src/executor.rs index 60770c7b..a583297c 100644 --- a/app/src/executor.rs +++ b/app/src/executor.rs @@ -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(), diff --git a/core/src/manager/manager.rs b/core/src/manager/manager.rs index 967440e0..cfa27039 100644 --- a/core/src/manager/manager.rs +++ b/core/src/manager/manager.rs @@ -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 {