Fix unused warnings with mpmc disabled

This commit is contained in:
Sosthène Guédon 2024-07-01 10:27:57 +02:00
parent 3343adaa70
commit e36e665a1b
No known key found for this signature in database
GPG Key ID: 36DA48A4C827B354

View File

@ -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;
}