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) {
|
fn dispatch_quit(&mut self, write_cwd_file: bool) {
|
||||||
if let Some(p) = &BOOT.cwd_file {
|
if let Some(p) = &BOOT.cwd_file {
|
||||||
let cwd = if write_cwd_file {
|
let cwd =
|
||||||
self.cx.manager.cwd().as_os_str()
|
if write_cwd_file { self.cx.manager.cwd().as_os_str() } else { &BOOT.cwd.as_os_str() };
|
||||||
} else {
|
|
||||||
&BOOT.cwd.as_os_str()
|
|
||||||
};
|
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue