http: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
064791e565
commit
0d30720907
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user