Merge pull request #551 from napi-rs/rust-1.52

chore: apply 1.52 clippy rules
This commit is contained in:
LongYinan 2021-05-07 18:38:17 +08:00 committed by GitHub
commit 6a43ed64f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
})
}