From 0078cefda1c76d6e639904f059b561ace2970c2b Mon Sep 17 00:00:00 2001 From: nabijaczleweli <nabijaczleweli@gmail.com> Date: Mon, 28 Nov 2016 07:32:12 +0100 Subject: [PATCH] Don't collect(), which is not unnecessary, so performance goes through the roof now --- src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 66d9b311ae..bf46a9c1ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)) => {