mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-15 10:08:33 +00:00
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)
|
/// Return the number of TBF entries (group_size)
|
||||||
pub fn len(&self) -> usize {
|
pub fn len(&self) -> usize {
|
||||||
self.state.len()
|
self.state.len()
|
||||||
|
@ -82,7 +82,7 @@ impl std::fmt::Display for WebSocketError {
|
|||||||
impl std::error::Error for WebSocketError {}
|
impl std::error::Error for WebSocketError {}
|
||||||
|
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
#[derive(Debug, PartialEq, PartialOrd, Copy, Clone)]
|
#[derive(Debug, Eq, PartialEq, PartialOrd, Copy, Clone)]
|
||||||
/// Represents an OpCode of a websocket frame
|
/// Represents an OpCode of a websocket frame
|
||||||
pub enum OpCode {
|
pub enum OpCode {
|
||||||
/// A fragmented frame
|
/// A fragmented frame
|
||||||
|
Loading…
Reference in New Issue
Block a user