Closed KodrAus closed 7 years ago
We should add some inline comments to the few calls to unwrap so it's clear to readers why it's safe to call unwrap in those places. All unwraps:
unwrap
<Iter as Iterator>::next
Iter::get_deferred_dir
Iter::push
We might also want to change these to expects with a simple message that the panic is a bug in walkdir.
expect
walkdir
I'd like to work on this issue.
We should add some inline comments to the few calls to
unwrap
so it's clear to readers why it's safe to callunwrap
in those places. Allunwrap
s:<Iter as Iterator>::next
Iter::get_deferred_dir
Iter::push
We might also want to change these to
expect
s with a simple message that the panic is a bug inwalkdir
.