Skip to content

Commit 316b08a

Browse files
authored
Use fs_err for the fs::hard_link function (#891)
for better error messages
1 parent 80933ff commit 316b08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/archive/tar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn unpack_archive(reader: Box<dyn Read>, output_folder: &Path) -> crate::Res
5454
let full_link_path = output_folder.join(&link_path);
5555
let full_target_path = output_folder.join(&target);
5656

57-
std::fs::hard_link(&full_target_path, &full_link_path)?;
57+
fs::hard_link(&full_target_path, &full_link_path)?;
5858
}
5959
tar::EntryType::Regular => {
6060
file.unpack_in(output_folder)?;

0 commit comments

Comments
 (0)