We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abc14d1 + 5c043f9 commit a675443Copy full SHA for a675443
src/decode.rs
@@ -95,8 +95,7 @@ pub fn decode_engine<E: Engine, T: AsRef<[u8]>>(
95
input: T,
96
engine: &E,
97
) -> Result<Vec<u8>, DecodeError> {
98
- let mut buffer = Vec::<u8>::with_capacity(input.as_ref().len() * 4 / 3);
99
-
+ let mut buffer = Vec::<u8>::new();
100
decode_engine_vec(input, &mut buffer, engine).map(|_| buffer)
101
}
102
0 commit comments