diff --git a/src/protocol/parser/pass_definitions.rs b/src/protocol/parser/pass_definitions.rs index 0436245808a05644b981900a7705735ba1f7457b..c6b2f994762f6f61637e05f7c3fd29e8198a074b 100644 --- a/src/protocol/parser/pass_definitions.rs +++ b/src/protocol/parser/pass_definitions.rs @@ -31,13 +31,13 @@ impl PassDefinitions { cur_definition: DefinitionId::new_invalid(), type_parser: ParserTypeParser::new(), buffer: String::with_capacity(128), - struct_fields: ScopedBuffer::new_reserved(128), - enum_variants: ScopedBuffer::new_reserved(128), - union_variants: ScopedBuffer::new_reserved(128), - variables: ScopedBuffer::new_reserved(128), - expressions: ScopedBuffer::new_reserved(128), - statements: ScopedBuffer::new_reserved(128), - parser_types: ScopedBuffer::new_reserved(128), + struct_fields: ScopedBuffer::with_capacity(128), + enum_variants: ScopedBuffer::with_capacity(128), + union_variants: ScopedBuffer::with_capacity(128), + variables: ScopedBuffer::with_capacity(128), + expressions: ScopedBuffer::with_capacity(128), + statements: ScopedBuffer::with_capacity(128), + parser_types: ScopedBuffer::with_capacity(128), } }