From 01cd697b82087730b00bafa60e25fd53b025cfdd Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Fri, 22 Mar 2024 08:33:12 +0800 Subject: [PATCH] style: try fixing clippy warning (#2341) --- test/sys/test_socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 90b8a6f528..ee60e62b45 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -2407,7 +2407,7 @@ fn test_recvmmsg_timestampns() { // Receive the message let mut buffer = vec![0u8; message.len()]; let cmsgspace = nix::cmsg_space!(TimeSpec); - let mut iov = vec![[IoSliceMut::new(&mut buffer)]]; + let mut iov = [[IoSliceMut::new(&mut buffer)]]; let mut data = MultiHeaders::preallocate(1, Some(cmsgspace)); let r: Vec> = recvmmsg( in_socket.as_raw_fd(),