mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-18 03:12:13 +00:00
add #[allow(clippy::drop_ref)]
This commit is contained in:
parent
1b764103f6
commit
916789336c
@ -654,6 +654,7 @@ impl ToTokens for ast::ImportType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
|
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
|
||||||
|
#[allow(clippy::drop_ref)]
|
||||||
fn instanceof(val: &JsValue) -> bool {
|
fn instanceof(val: &JsValue) -> bool {
|
||||||
drop(val);
|
drop(val);
|
||||||
panic!("cannot check instanceof on non-wasm targets");
|
panic!("cannot check instanceof on non-wasm targets");
|
||||||
@ -899,7 +900,6 @@ impl TryToTokens for ast::ImportFunction {
|
|||||||
abi_arguments.push(quote! { #exn_data_ptr: *mut u32 });
|
abi_arguments.push(quote! { #exn_data_ptr: *mut u32 });
|
||||||
convert_ret = quote! { Ok(#convert_ret) };
|
convert_ret = quote! { Ok(#convert_ret) };
|
||||||
exceptional_ret = quote! {
|
exceptional_ret = quote! {
|
||||||
#[allow(clippy::*)]
|
|
||||||
if #exn_data[0] == 1 {
|
if #exn_data[0] == 1 {
|
||||||
return Err(
|
return Err(
|
||||||
<
|
<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user