Skip to content

Commit

Permalink
Fix Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Aug 24, 2023
1 parent f5d2e5c commit c1d1ec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions crates/test-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion crates/webidl/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ impl Dictionary {
}
};

base_stream.extend(default_impl.into_iter());
base_stream.extend(default_impl);
}

base_stream
Expand Down

0 comments on commit c1d1ec7

Please sign in to comment.