From f189895cef753a9e6376c16cd220471642579d9a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 4 Oct 2021 14:57:39 +0200 Subject: [PATCH] fix deprecated use of std::u16 module integer primitive type modules are deprecated, use associated constants instead Signed-off-by: Wolfgang Bumiller --- proxmox-http/src/websocket/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-http/src/websocket/mod.rs b/proxmox-http/src/websocket/mod.rs index 1fe10ae8..f77f1d64 100644 --- a/proxmox-http/src/websocket/mod.rs +++ b/proxmox-http/src/websocket/mod.rs @@ -206,7 +206,7 @@ pub fn create_frame( if len < 126 { buf.push(mask_bit | (len as u8)); - } else if len < std::u16::MAX as usize { + } else if len < u16::MAX as usize { buf.push(mask_bit | 126); buf.extend_from_slice(&(len as u16).to_be_bytes()); } else {