diff --git a/yazi-boot/src/boot.rs b/yazi-boot/src/boot.rs index 83b404c4..ed67cebf 100644 --- a/yazi-boot/src/boot.rs +++ b/yazi-boot/src/boot.rs @@ -1,35 +1,25 @@ -use std::{ - collections::HashSet, - env, - ffi::OsString, - fmt::Write, - path::{Path, PathBuf}, - process, -}; +use std::{collections::HashSet, env, ffi::OsString, fmt::Write, path::{Path, PathBuf}, process}; use clap::Parser; use serde::Serialize; use yazi_config::PREVIEW; -use yazi_shared::{ - fs::{current_cwd, expand_path}, - Xdg, -}; +use yazi_shared::{fs::{current_cwd, expand_path}, Xdg}; use super::Args; use crate::ARGS; #[derive(Debug, Serialize)] pub struct Boot { - pub cwd: PathBuf, + pub cwd: PathBuf, pub file: Option, - pub local_events: HashSet, + pub local_events: HashSet, pub remote_events: HashSet, pub config_dir: PathBuf, pub flavor_dir: PathBuf, pub plugin_dir: PathBuf, - pub state_dir: PathBuf, + pub state_dir: PathBuf, } impl Boot { @@ -57,10 +47,7 @@ impl Boot { } fn action_debug() -> Result { - use std::{ - env::consts::{ARCH, FAMILY, OS}, - process::Command, - }; + use std::{env::consts::{ARCH, FAMILY, OS}, process::Command}; let mut s = String::new(); writeln!(s, "\nYazi")?;