From f5840bdcd360ec0bac2501f333e58e25742b1537 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 Jan 2023 10:43:16 -0500 Subject: chore: upgrade to Rust 1.67 (#17548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- test_napi/src/properties.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test_napi/src') diff --git a/test_napi/src/properties.rs b/test_napi/src/properties.rs index 9d90d0b7f..a54738cb5 100644 --- a/test_napi/src/properties.rs +++ b/test_napi/src/properties.rs @@ -36,7 +36,7 @@ pub fn init(env: napi_env, exports: napi_value) { let properties = &[ napi_property_descriptor { - utf8name: "test_property_rw".as_ptr() as *const c_char, + utf8name: "test_property_rw\0".as_ptr() as *const c_char, name: ptr::null_mut(), method: None, getter: None, @@ -46,7 +46,7 @@ pub fn init(env: napi_env, exports: napi_value) { value: number, }, napi_property_descriptor { - utf8name: "test_property_r".as_ptr() as *const c_char, + utf8name: "test_property_r\0".as_ptr() as *const c_char, name: ptr::null_mut(), method: None, getter: None, -- cgit v1.2.3