Skip to content

Commit

Permalink
add #[allow(clippy::drop_ref)]
Browse files Browse the repository at this point in the history
  • Loading branch information
T5uku5hi committed Feb 8, 2019
1 parent 1b76410 commit 9167893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ impl ToTokens for ast::ImportType {
}

#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
#[allow(clippy::drop_ref)]
fn instanceof(val: &JsValue) -> bool {
drop(val);
panic!("cannot check instanceof on non-wasm targets");
Expand Down Expand Up @@ -899,7 +900,6 @@ impl TryToTokens for ast::ImportFunction {
abi_arguments.push(quote! { #exn_data_ptr: *mut u32 });
convert_ret = quote! { Ok(#convert_ret) };
exceptional_ret = quote! {
#[allow(clippy::*)]
if #exn_data[0] == 1 {
return Err(
<
Expand Down

0 comments on commit 9167893

Please sign in to comment.