From dd8ecdece25f8434d84eb548e8f3c9a8b7ebc74d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 27 Mar 2021 11:15:34 +0200 Subject: refactor: return assigned value directly --- src/cmd/restore.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs index 147c422..183f207 100644 --- a/src/cmd/restore.rs +++ b/src/cmd/restore.rs @@ -234,8 +234,7 @@ fn restore_metadata(path: &Path, entry: &FilesystemEntry) -> RestoreResult<()> { fn path_to_cstring(path: &Path) -> CString { let path = path.as_os_str(); let path = path.as_bytes(); - let path = CString::new(path).unwrap(); - path + CString::new(path).unwrap() } fn create_progress_bar(file_count: i64, verbose: bool) -> ProgressBar { -- cgit v1.2.1