mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Run rustfmt +nightly **/*.rs to make the code more readable in reviewing
This commit is contained in:
parent
bbeeacfe71
commit
d6ea209690
1 changed files with 5 additions and 17 deletions
|
|
@ -1,24 +1,12 @@
|
||||||
use std::{
|
use std::{borrow::Cow, collections::HashMap, ffi::{OsStr, OsString}, io::{BufWriter, Write, stderr}, path::PathBuf};
|
||||||
borrow::Cow,
|
|
||||||
collections::HashMap,
|
|
||||||
ffi::{OsStr, OsString},
|
|
||||||
io::{stderr, BufWriter, Write},
|
|
||||||
path::PathBuf,
|
|
||||||
};
|
|
||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{Result, anyhow};
|
||||||
use scopeguard::defer;
|
use scopeguard::defer;
|
||||||
use tokio::{
|
use tokio::{fs::{self, OpenOptions}, io::{AsyncReadExt, AsyncWriteExt, stdin}};
|
||||||
fs::{self, OpenOptions},
|
|
||||||
io::{stdin, AsyncReadExt, AsyncWriteExt},
|
|
||||||
};
|
|
||||||
use yazi_config::{OPEN, PREVIEW};
|
use yazi_config::{OPEN, PREVIEW};
|
||||||
use yazi_dds::Pubsub;
|
use yazi_dds::Pubsub;
|
||||||
use yazi_proxy::{AppProxy, TasksProxy, HIDER, WATCHER};
|
use yazi_proxy::{AppProxy, HIDER, TasksProxy, WATCHER};
|
||||||
use yazi_shared::{
|
use yazi_shared::{fs::{File, FilesOp, Url, max_common_root, maybe_exists, paths_to_same_file}, terminal_clear};
|
||||||
fs::{max_common_root, maybe_exists, paths_to_same_file, File, FilesOp, Url},
|
|
||||||
terminal_clear,
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::manager::Manager;
|
use crate::manager::Manager;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue