diff --git a/Cargo.toml b/Cargo.toml index cb10bfc..e2f0d05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ harness = false # This dependency provides a version of the unstable nightly Rust `Allocator` # trait on stable Rust. Enabling this feature means that `bumpalo` will # implement its `Allocator` trait. -allocator-api2 = { version = "0.2.8", default-features = false, optional = true } +allocator-api2 = { version = "0.4.0", default-features = false, optional = true } # This dependency is here to allow integration with Serde, if the `serde` feature is enabled serde = { version = "1.0.171", optional = true } @@ -51,7 +51,7 @@ criterion = "0.3.6" rand = "0.8.5" serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.115" -blink-alloc = { version = "=0.4.0" } +blink-alloc = { version = "=0.4" } # Make sure that criterion pulls in a rayon that supports our MSRV. rayon = { version = "=1.10.0" } diff --git a/src/lib.rs b/src/lib.rs index ce93435..b816fbe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2471,9 +2471,9 @@ unsafe impl<'a, const MIN_ALIGN: usize> alloc::Alloc for &'a Bump { let new_layout = layout_from_size_align(new_size, layout.align())?; if new_size <= old_size { - Bump::shrink(self, ptr, layout, new_layout) + Bump::::shrink(self, ptr, layout, new_layout) } else { - Bump::grow(self, ptr, layout, new_layout) + Bump::::grow(self, ptr, layout, new_layout) } } }