mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-23 18:10:22 +00:00
Merge pull request #402 from ouch-org/use-try-hehe
This commit is contained in:
commit
3cb7274fe7
@ -117,10 +117,7 @@ where
|
|||||||
Err(e) => return Some(Err(e.into())),
|
Err(e) => return Some(Err(e.into())),
|
||||||
};
|
};
|
||||||
|
|
||||||
let path = match file.enclosed_name() {
|
let path = file.enclosed_name()?.to_owned();
|
||||||
Some(path) => path.to_owned(),
|
|
||||||
None => return None,
|
|
||||||
};
|
|
||||||
let is_dir = file.is_dir();
|
let is_dir = file.is_dir();
|
||||||
|
|
||||||
Some(Ok(FileInArchive { path, is_dir }))
|
Some(Ok(FileInArchive { path, is_dir }))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user