Skip to content

Commit 1c1bd95

Browse files
author
Vytautas Astrauskas
committed
Remove unnecessary intermediate pointer cast in Thread::new.
1 parent ec8275c commit 1c1bd95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/hermit/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl Thread {
5353
let ret = abi::spawn(
5454
&mut tid as *mut Tid,
5555
thread_start,
56-
p as *mut u8 as usize,
56+
p as usize,
5757
Priority::into(NORMAL_PRIO),
5858
core_id,
5959
);

0 commit comments

Comments
 (0)