diff options
| author | Steve Lau <stevelauc@outlook.com> | 2024-04-02 14:18:31 +0800 |
|---|---|---|
| committer | Steve Lau <stevelauc@outlook.com> | 2024-04-02 14:18:31 +0800 |
| commit | 6ad96825fcd8002c0e4234b020d2eb3ad79232e0 (patch) | |
| tree | 854d06d38e68f19c791ed9655a0cf8e5b9c0f84d | |
| parent | 6bbd8c519af69ebc30486d6cf02b7f7a52113950 (diff) | |
| download | rust-6ad96825fcd8002c0e4234b020d2eb3ad79232e0.tar.gz rust-6ad96825fcd8002c0e4234b020d2eb3ad79232e0.zip | |
fix: build on haiku by adding missing import
| -rw-r--r-- | library/std/src/sys/pal/unix/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index a9ed7e7c75e..3e3a54c3c74 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -278,7 +278,7 @@ impl Thread { return None; } let info = tinfo.assume_init(); - let name = 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() } } |
