Skip to content

Commit

Permalink
switch back to nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Sep 11, 2024
1 parent c86d409 commit 6650b9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.81"
channel = "nightly-2024-09-01"
targets = ["wasm32-unknown-unknown", "wasm32-wasip1"]
profile = "default" # include rustfmt, clippy
6 changes: 3 additions & 3 deletions test-no-std/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ 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;
if self
.remaining
.fetch_update(SeqCst, SeqCst, |mut remaining| {
if size > remaining {
return None
return None;
}
remaining -= size;
remaining &= align_mask_to_round_down;
Expand All @@ -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)
}
Expand Down

0 comments on commit 6650b9a

Please sign in to comment.