From 922caef96c9b449e608939ed61af6b03921032de Mon Sep 17 00:00:00 2001 From: MrElectrify Date: Thu, 16 Nov 2023 14:21:45 -0600 Subject: [PATCH] Make `FixedVector` Send and Sync, bump to 0.10.1 --- Cargo.toml | 2 +- src/fixed_vector/allocator.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8aae79b..413fde0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "eastl-rs" authors = ["Andrew Buck"] description = "EASTL binary-compatible Rust implementations" documentation = "https://docs.rs/crate/eastl-rs" -version = "0.10.0" +version = "0.10.1" edition = "2021" license-file = "LICENSE" readme = "README.md" diff --git a/src/fixed_vector/allocator.rs b/src/fixed_vector/allocator.rs index 0874075..e2491e0 100644 --- a/src/fixed_vector/allocator.rs +++ b/src/fixed_vector/allocator.rs @@ -43,3 +43,6 @@ unsafe impl Allocator for FixedVectorAllocator { } } } + +unsafe impl Send for FixedVectorAllocator {} +unsafe impl Sync for FixedVectorAllocator {}