From 1553bf7bc4170b37d945951278af08ab39b95a75 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 7 May 2021 18:19:52 +0800 Subject: [PATCH] chore: apply 1.52 clippy rules --- napi/src/call_context.rs | 2 +- napi/src/js_values/escapable_handle_scope.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/napi/src/call_context.rs b/napi/src/call_context.rs index c5d67503..c46b8ca3 100644 --- a/napi/src/call_context.rs +++ b/napi/src/call_context.rs @@ -40,8 +40,8 @@ impl<'env> CallContext<'env> { ) -> Self { Self { env, - callback_info, raw_this, + callback_info, args, length, } diff --git a/napi/src/js_values/escapable_handle_scope.rs b/napi/src/js_values/escapable_handle_scope.rs index 473f0879..b7282191 100644 --- a/napi/src/js_values/escapable_handle_scope.rs +++ b/napi/src/js_values/escapable_handle_scope.rs @@ -19,8 +19,8 @@ impl EscapableHandleScope { sys::napi_escape_handle(env, handle_scope, NapiRaw::raw(&value), &mut result) })?; Ok(Self { - value, handle_scope, + value, }) }