Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed May 22, 2023
1 parent b98796a commit c6783ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "allocator-api2"
version = "0.2.13"
version = "0.2.14"
edition = "2018"
authors = ["Zakarum <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 3 additions & 1 deletion src/stable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ unsafe fn assume(v: bool) {
#[cfg(not(debug_assertions))]
unsafe fn assume(v: bool) {
if !v {
core::hint::unreachable_unchecked()
unsafe {
core::hint::unreachable_unchecked();
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "allocator-api2-tests"
version = "0.2.13"
version = "0.2.14"
edition = "2021"
description = "Tests for allocators that implement the allocator API"
license = "MIT OR Apache-2.0"
Expand All @@ -12,4 +12,4 @@ repository = "https://github.com/zakarumych/allocator-api2"
nightly = ["allocator-api2/nightly"]

[dependencies]
allocator-api2 = { version = "=0.2.13", path = ".." }
allocator-api2 = { version = "=0.2.14", path = ".." }

0 comments on commit c6783ef

Please sign in to comment.