From 8289bd1cb0cf34d26a9f452850081799311e3f45 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 25 Feb 2021 16:52:32 +0900 Subject: minor, fix clippy lint --- helix-syntax/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-syntax') diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 89641225..b915ebf1 100644 --- a/helix-syntax/build.rs +++ b/helix-syntax/build.rs @@ -133,7 +133,7 @@ fn main() { tx.send(1).unwrap(); }); } - assert_eq!(rx.iter().take(n_jobs).fold(0, |a, b| a + b), n_jobs); + assert_eq!(rx.iter().take(n_jobs).sum::(), n_jobs); build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript"); -- cgit v1.2.3-70-g09d2