From 12ba4278c63f2138454d6ec0cde8876b4e0e2084 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Thu, 10 Feb 2022 21:30:52 -0800 Subject: [PATCH] Remove stack size overrides now that std defaults to 2MiB --- ctru-rs/examples/futures-tokio.rs | 2 -- ctru-rs/src/services/ps.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/ctru-rs/examples/futures-tokio.rs b/ctru-rs/examples/futures-tokio.rs index 9fe6855..045d1e4 100644 --- a/ctru-rs/examples/futures-tokio.rs +++ b/ctru-rs/examples/futures-tokio.rs @@ -31,8 +31,6 @@ fn main() { let runtime_thread = std::thread::Builder::new() // Run on the system core .affinity(1) - // Use a bigger stack size. Default is 0x1000 but we'd easily overflow that. - .stack_size(0x200000) .spawn(move || { runtime.block_on(async move { let mut wake_time = tokio::time::Instant::now() + Duration::from_secs(1); diff --git a/ctru-rs/src/services/ps.rs b/ctru-rs/src/services/ps.rs index 0b6ad13..e4c2da6 100644 --- a/ctru-rs/src/services/ps.rs +++ b/ctru-rs/src/services/ps.rs @@ -124,7 +124,6 @@ mod tests { // thread prints to the console, which is not captured by the default test // harness and prints even when the test passes. std::thread::Builder::new() - .stack_size(0x20_0000) .spawn(|| { let map: HashMap = HashMap::from_iter([ (1_i32, String::from("123")),