commit 9ae89c001120d34ac53409315f7a4576c321bec2
parent 3096bd960d34918d02b85fd448b76fa67c6907f0
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Fri, 24 Dec 2021 02:23:46 -0800
remove silly drop statement
we functional
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arg.rs b/arg.rs
@@ -42,7 +42,7 @@ fn main() {
positional = Some(arg);
continue;
}
- iter.map(|m| match m {
+ iter.for_each(|m| match m {
'c' => {
// I think this is the least worst way to do this
var = Some(
@@ -61,7 +61,6 @@ fn main() {
usage();
}
})
- .for_each(std::mem::drop);
}
// Check mandatory arguments