diff options
| author | Steve Lau <stevelauc@outlook.com> | 2024-04-02 14:29:38 +0800 |
|---|---|---|
| committer | Steve Lau <stevelauc@outlook.com> | 2024-04-02 14:29:38 +0800 |
| commit | bb439900ddaeb9ad7119508f9e1b9c7aa07b9f91 (patch) | |
| tree | 05205e406a3269009e25f23abe7b0de0bb3d400b | |
| parent | 6ad96825fcd8002c0e4234b020d2eb3ad79232e0 (diff) | |
| download | rust-bb439900ddaeb9ad7119508f9e1b9c7aa07b9f91.tar.gz rust-bb439900ddaeb9ad7119508f9e1b9c7aa07b9f91.zip | |
style: fmt
| -rw-r--r-- | library/std/src/sys/pal/unix/thread.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index 3e3a54c3c74..7d25c974ed3 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -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() } } |
