Skip to content

Commit

Permalink
♻️ Reduce unnecessary call &str::as_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Dec 17, 2024
1 parent 88c6cd1 commit ec95391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/command/commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ec95391

Please sign in to comment.