Skip to content

Commit

Permalink
fix(derive): fix clippy warning with newer rust version (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Sep 19, 2024
1 parent cc21452 commit 814188f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn module_exports(_attr: TokenStream, input: TokenStream) -> TokenStream {

let register = quote! {
#[cfg_attr(not(target_family = "wasm"), napi::bindgen_prelude::ctor)]
fn __napi__explicit_module_register() {
fn __napi_explicit_module_register() {
unsafe fn register(raw_env: napi::sys::napi_env, raw_exports: napi::sys::napi_value) -> napi::Result<()> {
use napi::{Env, JsObject, NapiValue};

Expand Down

0 comments on commit 814188f

Please sign in to comment.