mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
style: apply clippy fix (#1953)
This commit is contained in:
parent
6aae4bac0f
commit
20e0983288
@ -405,12 +405,10 @@ impl NapiFn {
|
||||
syn::Type::Reference(syn::TypeReference {
|
||||
lifetime: Some(lifetime),
|
||||
..
|
||||
}) => {
|
||||
return Err(Diagnostic::span_error(
|
||||
lifetime.span(),
|
||||
"lifetime is not allowed in napi function arguments",
|
||||
));
|
||||
}
|
||||
}) => Err(Diagnostic::span_error(
|
||||
lifetime.span(),
|
||||
"lifetime is not allowed in napi function arguments",
|
||||
)),
|
||||
syn::Type::Reference(syn::TypeReference {
|
||||
mutability: Some(_),
|
||||
elem,
|
||||
|
||||
@ -49,7 +49,7 @@ pub fn create_reference_on_function(env: Env, cb: Function<(), ()>) -> Result<Js
|
||||
Ok(())
|
||||
},
|
||||
move |env, _| {
|
||||
let cb = reference.borrow_back(&env)?;
|
||||
let cb = reference.borrow_back(env)?;
|
||||
cb.call(())?;
|
||||
Ok(())
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user