From 01c53c91dfb792eab186eb6fb1556962d0bea00b Mon Sep 17 00:00:00 2001 From: Rolf K Date: Sat, 17 Aug 2024 10:51:48 +0200 Subject: [PATCH] Run rustfmt --- yazi-core/src/manager/commands/create.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/yazi-core/src/manager/commands/create.rs b/yazi-core/src/manager/commands/create.rs index 1f1834f3..873a6d18 100644 --- a/yazi-core/src/manager/commands/create.rs +++ b/yazi-core/src/manager/commands/create.rs @@ -4,22 +4,17 @@ use anyhow::Result; use tokio::fs; use yazi_config::popup::InputCfg; use yazi_proxy::{InputProxy, TabProxy, WATCHER}; -use yazi_shared::{ - event::Cmd, - fs::{maybe_exists, ok_or_not_found, symlink_realpath, File, FilesOp, Url}, -}; +use yazi_shared::{event::Cmd, fs::{maybe_exists, ok_or_not_found, symlink_realpath, File, FilesOp, Url}}; use crate::manager::Manager; pub struct Opt { force: bool, - dir: bool, + dir: bool, } impl From for Opt { - fn from(c: Cmd) -> Self { - Self { force: c.bool("force"), dir: c.bool("dir") } - } + fn from(c: Cmd) -> Self { Self { force: c.bool("force"), dir: c.bool("dir") } } } impl Manager {