From c4c4696964ffc01067230f993e181efe5e4d3d33 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 31 Dec 2021 18:55:48 +0800 Subject: [PATCH] Fix builds. --- tests/for.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/for.rs b/tests/for.rs index 7cbf401a..62112a12 100644 --- a/tests/for.rs +++ b/tests/for.rs @@ -373,6 +373,7 @@ fn test_for_module_iterator() -> Result<(), Box> { } #[test] +#[cfg(not(feature = "no_index"))] #[cfg(not(feature = "no_closure"))] fn test_for_capture() -> Result<(), Box> { let engine = Engine::new(); @@ -389,7 +390,7 @@ fn test_for_capture() -> Result<(), Box> { let sum = 0; for fp in a { - sum += fp.call(); + sum += call(fp); } sum