diff --git a/src/decode.rs b/src/decode.rs index a073d08..d7b4195 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -95,8 +95,7 @@ pub fn decode_engine>( input: T, engine: &E, ) -> Result, DecodeError> { - let mut buffer = Vec::::with_capacity(input.as_ref().len() * 4 / 3); - + let mut buffer = Vec::::new(); decode_engine_vec(input, &mut buffer, engine).map(|_| buffer) }