diff --git a/src/tests.rs b/src/tests.rs index 9923e443..c0e67319 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -34,8 +34,7 @@ fn test_roundtrip() { } // large blob - let mut buf = Vec::::new(); - buf.resize(1000000, 0_u8); + let buf = vec![0; 1000000]; let n = a.new_atom(&buf).unwrap(); test_serialize_roundtrip(&mut a, n);