From 588c27a435ecd2f9f6bdca75ea10d6f19a3b1730 Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Wed, 11 Dec 2024 18:08:31 +0100 Subject: [PATCH] payload: suppress the clippy warning for now --- src/protocol/frame/payload.rs | 1 + 1 file changed, 1 insertion(+) 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() }