From f906f6dad692d82498102c3363be8db8c922f4e3 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Fri, 25 Aug 2023 00:04:26 +0200 Subject: [PATCH] Fix Clippy (#3567) --- crates/test-macro/src/lib.rs | 5 ++--- crates/webidl/src/generator.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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