mirror of
https://github.com/nivekuil/rip
synced 2024-11-26 05:30:18 +00:00
Fix unwrap on err in seance
This commit is contained in:
parent
953c6e0d97
commit
18bd15e493
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ mk_tarball() {
|
|||
|
||||
# TODO update this part to copy the artifacts that make sense for your project
|
||||
# NOTE All Cargo build artifacts will be under the 'target/$TARGET/{debug,release}'
|
||||
cp target/$TARGET/release/hello $td
|
||||
cp target/$TARGET/release/rip $td
|
||||
|
||||
pushd $td
|
||||
|
||||
|
|
|
@ -113,8 +113,8 @@ Send files to the graveyard (/tmp/.graveyard) instead of unlinking them.")
|
|||
} else {
|
||||
WalkDir::new(path).min_depth(1)
|
||||
};
|
||||
for entry in walkdir {
|
||||
println!("{}", entry.unwrap().path().display());
|
||||
for entry in walkdir.into_iter().filter_map(|e| e.ok()) {
|
||||
println!("{}", entry.path().display());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue