diff --git a/crates/swc_ecma_parser/tests/test262.rs b/crates/swc_ecma_parser/tests/test262.rs index c313828287f9..1b167648f9e8 100644 --- a/crates/swc_ecma_parser/tests/test262.rs +++ b/crates/swc_ecma_parser/tests/test262.rs @@ -305,6 +305,8 @@ fn identity_tests(tests: &mut Vec) -> Result<(), io::Error> { let expected = p(true); assert_eq!(src, expected); } + + Ok(()) }); } diff --git a/crates/swc_ecma_transforms_base/tests/fixer_test262.rs b/crates/swc_ecma_transforms_base/tests/fixer_test262.rs index 078d99f7c93c..38b336c2145f 100644 --- a/crates/swc_ecma_transforms_base/tests/fixer_test262.rs +++ b/crates/swc_ecma_transforms_base/tests/fixer_test262.rs @@ -92,7 +92,7 @@ const IGNORED_PASS_TESTS: &[&str] = &[ "c06df922631aeabc.js", ]; -fn add_test( +fn add_test Result<(), String> + Send + 'static>( tests: &mut Vec, name: String, ignore: bool, @@ -258,6 +258,8 @@ fn identity_tests(tests: &mut Vec) -> Result<(), io::Error> { Err(()) }) .expect("failed to run test"); + + Ok(()) } }); }