style: apply clippy fix (#1953)
This commit is contained in:
parent
6aae4bac0f
commit
20e0983288
2 changed files with 5 additions and 7 deletions
|
@ -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…
Reference in a new issue