Skip to content

Commit

Permalink
payload: suppress the clippy warning for now
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-abramov committed Dec 11, 2024
1 parent 663d3da commit 588c27a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocol/frame/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 588c27a

Please sign in to comment.