http: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-06-29 10:14:33 +02:00
parent 064791e565
commit 0d30720907
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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