mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
refactor: refine PathLike and StrandLike traits (#3340)
This commit is contained in:
parent
9cd742811a
commit
d3ad1c0920
109 changed files with 1282 additions and 1492 deletions
|
|
@ -8,6 +8,9 @@ description = "Yazi task scheduler"
|
|||
homepage = "https://yazi-rs.github.io"
|
||||
repository = "https://github.com/sxyazi/yazi"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
yazi-config = { path = "../yazi-config", version = "25.9.15" }
|
||||
yazi-dds = { path = "../yazi-dds", version = "25.9.15" }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use tracing::error;
|
|||
use yazi_config::Priority;
|
||||
use yazi_fs::{FilesOp, FsHash64};
|
||||
use yazi_plugin::isolate;
|
||||
use yazi_shared::{event::CmdCow, path::PathLike, url::{UrlBuf, UrlLike}};
|
||||
use yazi_shared::{event::CmdCow, url::{UrlBuf, UrlLike}};
|
||||
use yazi_vfs::provider;
|
||||
|
||||
use super::{PreworkInFetch, PreworkInLoad, PreworkInSize};
|
||||
|
|
@ -106,7 +106,7 @@ impl Prework {
|
|||
let parent = buf[0].0.parent().unwrap();
|
||||
FilesOp::Size(
|
||||
parent.into(),
|
||||
HashMap::from_iter(buf.into_iter().map(|(u, s)| (u.urn().owned(), s))),
|
||||
HashMap::from_iter(buf.into_iter().map(|(u, s)| (u.urn().into(), s))),
|
||||
)
|
||||
.emit();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue