Skip to content

Commit 6ad9682

Browse files
committed
fix: build on haiku by adding missing import
1 parent 6bbd8c5 commit 6ad9682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/unix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl Thread {
278278
return None;
279279
}
280280
let info = tinfo.assume_init();
281-
let name = slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
281+
let name = core::slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len());
282282
CStr::from_bytes_until_nul(name).map(CStr::to_owned).ok()
283283
}
284284
}

0 commit comments

Comments
 (0)