diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 05a9a667d..a03a5c66d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.81" +channel = "nightly-2024-09-01" targets = ["wasm32-unknown-unknown", "wasm32-wasip1"] profile = "default" # include rustfmt, clippy diff --git a/test-no-std/src/main.rs b/test-no-std/src/main.rs index e20bc919f..6495ecff2 100644 --- a/test-no-std/src/main.rs +++ b/test-no-std/src/main.rs @@ -95,7 +95,7 @@ unsafe impl GlobalAlloc for SimpleAllocator { let align_mask_to_round_down = !(align - 1); if align > MAX_SUPPORTED_ALIGN { - return null_mut() + return null_mut(); } let mut allocated = 0; @@ -103,7 +103,7 @@ unsafe impl GlobalAlloc for SimpleAllocator { .remaining .fetch_update(SeqCst, SeqCst, |mut remaining| { if size > remaining { - return None + return None; } remaining -= size; remaining &= align_mask_to_round_down; @@ -112,7 +112,7 @@ unsafe impl GlobalAlloc for SimpleAllocator { }) .is_err() { - return null_mut() + return null_mut(); }; (self.arena.get() as *mut u8).add(allocated) }