about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Lau <stevelauc@outlook.com>2024-04-02 14:29:38 +0800
committerSteve Lau <stevelauc@outlook.com>2024-04-02 14:29:38 +0800
commitbb439900ddaeb9ad7119508f9e1b9c7aa07b9f91 (patch)
tree05205e406a3269009e25f23abe7b0de0bb3d400b
parent6ad96825fcd8002c0e4234b020d2eb3ad79232e0 (diff)
downloadrust-bb439900ddaeb9ad7119508f9e1b9c7aa07b9f91.tar.gz
rust-bb439900ddaeb9ad7119508f9e1b9c7aa07b9f91.zip
style: fmt
-rw-r--r--library/std/src/sys/pal/unix/thread.rs3
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()
         }
     }