From 536a928ff0048c1d115c5d65c6c1f1e69b4e7ef3 Mon Sep 17 00:00:00 2001 From: Shupeng Xue Date: Sun, 23 Jun 2024 16:32:36 +1000 Subject: [PATCH] make new function inline --- yazi-shared/src/fs/fns.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/yazi-shared/src/fs/fns.rs b/yazi-shared/src/fs/fns.rs index 16bb6bf3..45bf9885 100644 --- a/yazi-shared/src/fs/fns.rs +++ b/yazi-shared/src/fs/fns.rs @@ -35,6 +35,7 @@ pub async fn are_paths_equal(old: impl AsRef, new: impl AsRef) -> bo } } +#[inline] async fn canonicalize_without_resolving_itself(path: impl AsRef) -> Option { let meta = fs::symlink_metadata(&path).await.ok()?; if meta.is_symlink() {