diff options
Diffstat (limited to 'ctru-rs/src/thread.rs')
| -rw-r--r-- | ctru-rs/src/thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ctru-rs/src/thread.rs b/ctru-rs/src/thread.rs index 4c4e23d..a194a3e 100644 --- a/ctru-rs/src/thread.rs +++ b/ctru-rs/src/thread.rs @@ -886,7 +886,7 @@ fn _assert_sync_and_send() { } mod imp { - use std::boxed::FnBox; + use std::boxed::Box; use std::cmp; use std::io; use std::mem; @@ -912,7 +912,7 @@ mod imp { stack: usize, priority: i32, affinity: i32, - p: Box<FnBox() + 'a>, + p: Box<dyn FnOnce() + 'a>, ) -> io::Result<Thread> { let p = Box::new(p); let stack_size = cmp::max(stack, DEFAULT_MIN_STACK_SIZE); @@ -961,7 +961,7 @@ mod imp { } unsafe fn _start_thread(main: *mut u8) { - Box::from_raw(main as *mut Box<FnBox()>)() + Box::from_raw(main as *mut Box<dyn FnOnce()>)() } pub fn yield_now() { |