From d1e215655ab3e5b604ae17e85ba06d4fa2dd1705 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Tue, 3 Sep 2024 15:56:09 -0400 Subject: [PATCH] follow Clippy's recommendation to remove some unneeded vec --- capnp/src/serialize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capnp/src/serialize.rs b/capnp/src/serialize.rs index b3303814d..6322897f5 100644 --- a/capnp/src/serialize.rs +++ b/capnp/src/serialize.rs @@ -1012,7 +1012,7 @@ pub mod test { #[test] fn read_message_from_flat_slice_with_remainder() { - let segments = vec![ + let segments = [ vec![123, 0, 0, 0, 0, 0, 0, 0], vec![4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0], ]; @@ -1044,7 +1044,7 @@ pub mod test { #[test] fn read_message_from_flat_slice_too_short() { - let segments = vec![ + let segments = [ vec![1, 0, 0, 0, 0, 0, 0, 0], vec![2, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0], ];