Run rustfmt

This commit is contained in:
Rolf K 2024-08-17 10:51:48 +02:00
parent d57444d336
commit 01c53c91df

View file

@ -4,10 +4,7 @@ use anyhow::Result;
use tokio::fs; use tokio::fs;
use yazi_config::popup::InputCfg; use yazi_config::popup::InputCfg;
use yazi_proxy::{InputProxy, TabProxy, WATCHER}; use yazi_proxy::{InputProxy, TabProxy, WATCHER};
use yazi_shared::{ use yazi_shared::{event::Cmd, fs::{maybe_exists, ok_or_not_found, symlink_realpath, File, FilesOp, Url}};
event::Cmd,
fs::{maybe_exists, ok_or_not_found, symlink_realpath, File, FilesOp, Url},
};
use crate::manager::Manager; use crate::manager::Manager;
@ -17,9 +14,7 @@ pub struct Opt {
} }
impl From<Cmd> for Opt { impl From<Cmd> for Opt {
fn from(c: Cmd) -> Self { fn from(c: Cmd) -> Self { Self { force: c.bool("force"), dir: c.bool("dir") } }
Self { force: c.bool("force"), dir: c.bool("dir") }
}
} }
impl Manager { impl Manager {