diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index 848ffaf25dc..53050be011c 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -94,14 +94,13 @@ pub fn wasm_bindgen_test( // main test harness. This is the entry point for all tests. let name = format_ident!("__wbgt_{}_{}", ident, CNT.fetch_add(1, Ordering::SeqCst)); tokens.extend( - (quote! { + quote! { #[no_mangle] pub extern "C" fn #name(cx: &::wasm_bindgen_test::__rt::Context) { let test_name = ::core::concat!(::core::module_path!(), "::", ::core::stringify!(#ident)); #test_body } - }) - .into_iter(), + }, ); tokens.extend(leading_tokens); diff --git a/crates/webidl/src/generator.rs b/crates/webidl/src/generator.rs index c167ff0f248..cf7e942cdc8 100644 --- a/crates/webidl/src/generator.rs +++ b/crates/webidl/src/generator.rs @@ -774,7 +774,7 @@ impl Dictionary { } }; - base_stream.extend(default_impl.into_iter()); + base_stream.extend(default_impl); } base_stream