style: clippy fix
This commit is contained in:
parent
aaf1bd14ea
commit
c365c15639
1 changed files with 13 additions and 17 deletions
|
@ -264,8 +264,7 @@ impl NapiFn {
|
|||
quote! {
|
||||
<#ty as napi::bindgen_prelude::ToNapiValue>::to_napi_value(env, #ret)
|
||||
}
|
||||
} else {
|
||||
if is_return_self {
|
||||
} else if is_return_self {
|
||||
quote! { #ret.map(|_| cb.this) }
|
||||
} else {
|
||||
quote! {
|
||||
|
@ -278,16 +277,13 @@ impl NapiFn {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if is_return_self {
|
||||
} else if is_return_self {
|
||||
quote! { Ok(cb.this) }
|
||||
} else {
|
||||
quote! {
|
||||
<#ty as napi::bindgen_prelude::ToNapiValue>::to_napi_value(env, #ret)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
quote! {
|
||||
<() as napi::bindgen_prelude::ToNapiValue>::to_napi_value(env, ())
|
||||
|
|
Loading…
Reference in a new issue