Run rustfmt +nightly **/*.rs to make the code more readable in reviewing

This commit is contained in:
sxyazi 2024-10-28 23:57:48 +08:00
parent bbeeacfe71
commit d6ea209690
No known key found for this signature in database

View file

@ -1,24 +1,12 @@
use std::{
borrow::Cow,
collections::HashMap,
ffi::{OsStr, OsString},
io::{stderr, BufWriter, Write},
path::PathBuf,
};
use std::{borrow::Cow, collections::HashMap, ffi::{OsStr, OsString}, io::{BufWriter, Write, stderr}, path::PathBuf};
use anyhow::{anyhow, Result};
use anyhow::{Result, anyhow};
use scopeguard::defer;
use tokio::{
fs::{self, OpenOptions},
io::{stdin, AsyncReadExt, AsyncWriteExt},
};
use tokio::{fs::{self, OpenOptions}, io::{AsyncReadExt, AsyncWriteExt, stdin}};
use yazi_config::{OPEN, PREVIEW};
use yazi_dds::Pubsub;
use yazi_proxy::{AppProxy, TasksProxy, HIDER, WATCHER};
use yazi_shared::{
fs::{max_common_root, maybe_exists, paths_to_same_file, File, FilesOp, Url},
terminal_clear,
};
use yazi_proxy::{AppProxy, HIDER, TasksProxy, WATCHER};
use yazi_shared::{fs::{File, FilesOp, Url, max_common_root, maybe_exists, paths_to_same_file}, terminal_clear};
use crate::manager::Manager;