diff --git a/proxmox-http/src/client/rate_limiter.rs b/proxmox-http/src/client/rate_limiter.rs index 290cf2ba..945c77a6 100644 --- a/proxmox-http/src/client/rate_limiter.rs +++ b/proxmox-http/src/client/rate_limiter.rs @@ -184,6 +184,7 @@ impl RateLimiterVec { } } + #[allow(clippy::len_without_is_empty)] /// Return the number of TBF entries (group_size) pub fn len(&self) -> usize { self.state.len() diff --git a/proxmox-http/src/websocket/mod.rs b/proxmox-http/src/websocket/mod.rs index 50477f62..93341788 100644 --- a/proxmox-http/src/websocket/mod.rs +++ b/proxmox-http/src/websocket/mod.rs @@ -82,7 +82,7 @@ impl std::fmt::Display for WebSocketError { impl std::error::Error for WebSocketError {} #[repr(u8)] -#[derive(Debug, PartialEq, PartialOrd, Copy, Clone)] +#[derive(Debug, Eq, PartialEq, PartialOrd, Copy, Clone)] /// Represents an OpCode of a websocket frame pub enum OpCode { /// A fragmented frame