Skip to content

Commit

Permalink
std::thread: follow-up rust-lang#123913 removing unsafe on success fo…
Browse files Browse the repository at this point in the history
…r glibc.
  • Loading branch information
devnexen committed Apr 17, 2024
1 parent 38104f3 commit 79dee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ unsafe fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {

match __pthread_get_minstack.get() {
None => libc::PTHREAD_STACK_MIN,
Some(f) => unsafe { f(attr) },
Some(f) => f(attr),
}
}

Expand Down

0 comments on commit 79dee14

Please sign in to comment.