From 9304126be5633d4e7d384a8df87f5833a7a145e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Thu, 11 Apr 2024 06:08:23 +0800 Subject: chore: update to Rust 1.77.2 (#23262) update to Rust 1.77.2 --------- Co-authored-by: Matt Mastracci --- ext/napi/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/napi') diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 520597891..b3313f0fe 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -79,7 +79,7 @@ pub const napi_would_deadlock: napi_status = 21; pub const NAPI_AUTO_LENGTH: usize = usize::MAX; thread_local! { - pub static MODULE_TO_REGISTER: RefCell> = RefCell::new(None); + pub static MODULE_TO_REGISTER: RefCell> = const { RefCell::new(None) }; } type napi_addon_register_func = -- cgit v1.2.3