Skip to content

Commit

Permalink
Fix unused warnings with mpmc disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jul 1, 2024
1 parent 7ff1470 commit 6508449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ use core::borrow::{Borrow, BorrowMut};
pub(crate) trait SealedStorage {
type Buffer<T>: ?Sized + Borrow<[T]> + BorrowMut<[T]>;
/// Obtain the length of the buffer
#[allow(unused)]
fn len<T>(this: *const Self::Buffer<T>) -> usize;
/// Obtain access to the first element of the buffer
#[allow(unused)]
fn as_ptr<T>(this: *mut Self::Buffer<T>) -> *mut T;
}

Expand Down

0 comments on commit 6508449

Please sign in to comment.