Skip to content

Commit

Permalink
Don't collect(), which is not unnecessary, so performance goes throug…
Browse files Browse the repository at this point in the history
…h the roof now
  • Loading branch information
nabijaczleweli committed Dec 1, 2016
1 parent d25a48e commit 0078cef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ fn actual_main() -> Result<(), i32> {

Ok(())
})
.collect::<Vec<_>>()
.into_iter()
.fold((0, vec![], None), |(s, mut e, r), p| match p {
Ok(()) => (s + 1, e, r),
Err((pr, pn)) => {
Expand Down

0 comments on commit 0078cef

Please sign in to comment.