Skip to content

Commit 79dee14

Browse files
committed
std::thread: follow-up rust-lang#123913 removing unsafe on success for glibc.
1 parent 38104f3 commit 79dee14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ unsafe fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
717717

718718
match __pthread_get_minstack.get() {
719719
None => libc::PTHREAD_STACK_MIN,
720-
Some(f) => unsafe { f(attr) },
720+
Some(f) => f(attr),
721721
}
722722
}
723723

0 commit comments

Comments
 (0)