chore: apply 1.52 clippy rules

This commit is contained in:
LongYinan 2021-05-07 18:19:52 +08:00
parent e9bb6d19ca
commit 1553bf7bc4
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 2 additions and 2 deletions

View file

@ -40,8 +40,8 @@ impl<'env> CallContext<'env> {
) -> Self {
Self {
env,
callback_info,
raw_this,
callback_info,
args,
length,
}

View file

@ -19,8 +19,8 @@ impl<T: NapiValue> EscapableHandleScope<T> {
sys::napi_escape_handle(env, handle_scope, NapiRaw::raw(&value), &mut result)
})?;
Ok(Self {
value,
handle_scope,
value,
})
}