refactor: refine PathLike and StrandLike traits (#3340)

This commit is contained in:
三咲雅 misaki masa 2025-11-19 18:07:04 +08:00 committed by GitHub
parent 9cd742811a
commit d3ad1c0920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 1282 additions and 1492 deletions

View file

@ -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" }

View file

@ -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();
});