From ec95391fe1c75ac7c892f84e404afe134007f215 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:21:18 +0900 Subject: [PATCH] :recycle: Reduce unnecessary call `&str::as_path` --- cli/src/command/commons.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/command/commons.rs b/cli/src/command/commons.rs index c28eaa8e..41d22547 100644 --- a/cli/src/command/commons.rs +++ b/cli/src/command/commons.rs @@ -119,7 +119,7 @@ pub(crate) fn create_entry( let source = fs::read_link(path)?; let entry = EntryBuilder::new_symbolic_link( EntryName::from_lossy(path), - EntryReference::from_lossy(source.as_path()), + EntryReference::from_lossy(source), )?; return apply_metadata(entry, path, keep_options, owner_options)?.build(); } else if path.is_file() {