From cbaa3b45bc946c0ab2c5cce637b8b877b0118dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 14 May 2021 15:44:40 +0200 Subject: [PATCH] http: make clippy happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- proxmox-http/src/websocket/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxmox-http/src/websocket/mod.rs b/proxmox-http/src/websocket/mod.rs index aac7304d..b8f31dc5 100644 --- a/proxmox-http/src/websocket/mod.rs +++ b/proxmox-http/src/websocket/mod.rs @@ -202,8 +202,7 @@ pub fn create_frame( 0b00000000 }; - let mut buf = Vec::new(); - buf.push(first_byte); + let mut buf = vec![first_byte]; if len < 126 { buf.push(mask_bit | (len as u8));