From e9f59821475993996d9b83cc25af636566d89f12 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sat, 4 Oct 2025 19:25:10 -0700 Subject: [PATCH] Fix a clipply --- build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.rs b/build.rs index de30e574c..6bfbf1dd2 100644 --- a/build.rs +++ b/build.rs @@ -169,10 +169,7 @@ fn has_small_stack(_: &Target) -> bool { // Modern macOS versions default to an 8 MiB main stack but legacy OS X have a 0.5 MiB one. let stack_size = unsafe { pthread_get_stacksize_np(pthread_self()) }; const TWO_MIB: usize = 2 * 1024 * 1024 - 1; - match stack_size { - 0..=TWO_MIB => true, - _ => false, - } + stack_size <= TWO_MIB } }