From b531191c9c87c9379dbe39dc852e1efaa556e7b4 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Sat, 28 Oct 2023 12:21:41 -0700 Subject: [PATCH] clippy --- 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);