From 907a4df6ffc12b4073eea635bc53af22fa7fae97 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Wed, 1 May 2024 17:18:05 +0200 Subject: [PATCH] remove use of vec where an array works too --- src/subscribe/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscribe/mod.rs b/src/subscribe/mod.rs index 881dd58..f5e642c 100644 --- a/src/subscribe/mod.rs +++ b/src/subscribe/mod.rs @@ -124,7 +124,7 @@ mod tests { fn test_invalid_data_len() { const LEN: usize = 8 * 1024 * 1024; let megabytes = vec![0; LEN]; - let multipart = vec![ + let multipart = [ zmq::Message::from("topic"), zmq::Message::from(megabytes), zmq::Message::from(&[0x00u8, 0x00, 0x00, 0x00] as &[u8]),