Skip to content

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Apr 2, 2024
1 parent 6ad9682 commit bb43990
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/std/src/sys/pal/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ impl Thread {
return None;
}
let info = tinfo.assume_init();
let name = core::slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
let name =
core::slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
CStr::from_bytes_until_nul(name).map(CStr::to_owned).ok()
}
}
Expand Down

0 comments on commit bb43990

Please sign in to comment.