diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
| commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
| tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /test_napi | |
| parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) | |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'test_napi')
| -rw-r--r-- | test_napi/src/properties.rs | 4 | ||||
| -rw-r--r-- | test_napi/tests/napi_tests.rs | 4 |
2 files changed, 4 insertions, 4 deletions
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, diff --git a/test_napi/tests/napi_tests.rs b/test_napi/tests/napi_tests.rs index 3351d74c1..cba96079e 100644 --- a/test_napi/tests/napi_tests.rs +++ b/test_napi/tests/napi_tests.rs @@ -40,8 +40,8 @@ fn napi_tests() { let stderr = std::str::from_utf8(&output.stderr).unwrap(); if !output.status.success() { - println!("stdout {}", stdout); - println!("stderr {}", stderr); + println!("stdout {stdout}"); + println!("stderr {stderr}"); } assert!(output.status.success()); } |
