aboutsummaryrefslogtreecommitdiff
path: root/ctru-rs/src
diff options
context:
space:
mode:
Diffstat (limited to 'ctru-rs/src')
-rw-r--r--ctru-rs/src/lib.rs1
-rw-r--r--ctru-rs/src/thread.rs6
2 files changed, 3 insertions, 4 deletions
diff --git a/ctru-rs/src/lib.rs b/ctru-rs/src/lib.rs
index a5c2321..c1c6eae 100644
--- a/ctru-rs/src/lib.rs
+++ b/ctru-rs/src/lib.rs
@@ -1,7 +1,6 @@
#![crate_type = "rlib"]
#![crate_name = "ctru"]
-#![feature(fnbox)]
#![feature(rustc_private)]
#[macro_use]
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() {