Fix: allow flexbuffers alloc check test (#8972)

* Fix: allow flexbuffers alloc check test

* fix: flaky CI failure

* fix: set flexbuffers alloc check false
This commit is contained in:
Renzo 2026-03-12 14:44:32 +01:00 committed by GitHub
parent fc9909c30a
commit 10c994155c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,