Fix unwrap on err in seance

This commit is contained in:
Kevin Liu 2016-10-17 20:22:26 -07:00
parent 953c6e0d97
commit 18bd15e493
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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;
}