From 10c994155ca80959418ce442827051178747bbb6 Mon Sep 17 00:00:00 2001 From: Renzo <170978465+RenzoMXD@users.noreply.github.com> Date: Thu, 12 Mar 2026 14:44:32 +0100 Subject: [PATCH] Fix: allow flexbuffers alloc check test (#8972) * Fix: allow flexbuffers alloc check test * fix: flaky CI failure * fix: set flexbuffers alloc check false --- rust/flatbuffers/src/builder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/flatbuffers/src/builder.rs b/rust/flatbuffers/src/builder.rs index f4cf961e3..7edacc58e 100644 --- a/rust/flatbuffers/src/builder.rs +++ b/rust/flatbuffers/src/builder.rs @@ -294,6 +294,9 @@ impl<'fbb, A: Allocator> FlatBufferBuilder<'fbb, A> { min_align: 0, force_defaults: false, + #[cfg(feature = "std")] + strings_pool: HashMap::with_capacity(strings_pool_capacity), + #[cfg(not(feature = "std"))] strings_pool: Vec::with_capacity(strings_pool_capacity), _phantom: PhantomData,