diff --git a/src/protocol/frame/payload.rs b/src/protocol/frame/payload.rs index 6c34a389..fa4d5741 100644 --- a/src/protocol/frame/payload.rs +++ b/src/protocol/frame/payload.rs @@ -43,6 +43,7 @@ impl Payload { } /// Returns the length of the payload. + #[allow(clippy::len_without_is_empty)] pub fn len(&self) -> usize { self.as_slice().len() }