diff options
Diffstat (limited to 'ctr-std/src/sys/wasm')
| -rw-r--r-- | ctr-std/src/sys/wasm/os.rs | 2 | ||||
| -rw-r--r-- | ctr-std/src/sys/wasm/thread.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ctr-std/src/sys/wasm/os.rs b/ctr-std/src/sys/wasm/os.rs index 23ca175..0cb991e 100644 --- a/ctr-std/src/sys/wasm/os.rs +++ b/ctr-std/src/sys/wasm/os.rs @@ -21,7 +21,7 @@ pub fn errno() -> i32 { } pub fn error_string(_errno: i32) -> String { - format!("operation successful") + "operation successful".to_string() } pub fn getcwd() -> io::Result<PathBuf> { diff --git a/ctr-std/src/sys/wasm/thread.rs b/ctr-std/src/sys/wasm/thread.rs index 728e678..8173a62 100644 --- a/ctr-std/src/sys/wasm/thread.rs +++ b/ctr-std/src/sys/wasm/thread.rs @@ -19,7 +19,7 @@ pub struct Thread(Void); pub const DEFAULT_MIN_STACK_SIZE: usize = 4096; impl Thread { - pub unsafe fn new<'a>(_stack: usize, _p: Box<FnBox() + 'a>) + pub unsafe fn new<'a>(_stack: usize, _p: Box<dyn FnBox() + 'a>) -> io::Result<Thread> { unsupported() |