From 296c12b83ed666d1487c931a4dd2831aeea4e113 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 31 Oct 2023 16:27:01 +0100 Subject: [PATCH] fix clippy warning --- src/tests.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);