mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
make new function inline
This commit is contained in:
parent
e86eeb5c16
commit
536a928ff0
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ pub async fn are_paths_equal(old: impl AsRef<Path>, new: impl AsRef<Path>) -> bo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
async fn canonicalize_without_resolving_itself(path: impl AsRef<Path>) -> Option<PathBuf> {
|
async fn canonicalize_without_resolving_itself(path: impl AsRef<Path>) -> Option<PathBuf> {
|
||||||
let meta = fs::symlink_metadata(&path).await.ok()?;
|
let meta = fs::symlink_metadata(&path).await.ok()?;
|
||||||
if meta.is_symlink() {
|
if meta.is_symlink() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue