Skip to content

Commit

Permalink
bytes: ignore dead code
Browse files Browse the repository at this point in the history
The NCM descriptors do not use the full interface. Allowing dead code to
avoid warnings.

Signed-off-by: Florian Grandel <[email protected]>
  • Loading branch information
Florian Grandel committed Nov 27, 2024
1 parent 49efe50 commit 8d26950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub(crate) trait BufMut {
}
}

#[allow(dead_code)]
pub(crate) trait Buf {
fn remaining(&self) -> usize;
fn has_remaining(&self) -> bool {
Expand Down

0 comments on commit 8d26950

Please sign in to comment.