From 79dee1462a9579b0fafbad52dd956ad60bf3da9e Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 17 Apr 2024 21:48:19 +0100 Subject: [PATCH] std::thread: follow-up #123913 removing unsafe on success for glibc. --- library/std/src/sys/pal/unix/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index 6a6bfc77a8541..6aa02e3b2f443 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -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), } }