Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Nov 21, 2022
1 parent 3da6cce commit b9de324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/neon/src/sys/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ pub unsafe fn utf8_len(env: Env, value: Local) -> usize {

pub unsafe fn data(env: Env, out: *mut u8, len: usize, value: Local) -> usize {
let mut read = MaybeUninit::uninit();
let status =
napi::get_value_string_utf8(env, value, out as *mut _, len, read.as_mut_ptr());
let status = napi::get_value_string_utf8(env, value, out as *mut _, len, read.as_mut_ptr());

assert_eq!(status, napi::Status::Ok);

Expand Down

0 comments on commit b9de324

Please sign in to comment.