mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
style: use rustfmt
This commit is contained in:
parent
dfdebed390
commit
98de71e6fe
3 changed files with 4 additions and 7 deletions
|
|
@ -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")]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue