diff options
author | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
commit | 8289bd1cb0cf34d26a9f452850081799311e3f45 (patch) | |
tree | 1d8fc45f221c1920361ca535167ea3782ae20cb7 /helix-syntax/build.rs | |
parent | 01907b349771106865853dc2ea90aaa0913a7297 (diff) |
minor, fix clippy lint
Diffstat (limited to 'helix-syntax/build.rs')
-rw-r--r-- | helix-syntax/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<usize>(), n_jobs); build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript"); |