diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:15:34 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:15:34 +0200 |
commit | dd8ecdece25f8434d84eb548e8f3c9a8b7ebc74d (patch) | |
tree | 8f78587389a09b57ecb6f986b31a152c8c6ad9a6 | |
parent | 939433798b708d986928a124e81dd03c8488ad90 (diff) | |
download | obnam2-dd8ecdece25f8434d84eb548e8f3c9a8b7ebc74d.tar.gz |
refactor: return assigned value directly
-rw-r--r-- | src/cmd/restore.rs | 3 |
1 files changed, 1 insertions, 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 { |