mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-01 14:30:33 +00:00
Fix unused warnings with mpmc
disabled
This commit is contained in:
parent
3343adaa70
commit
e36e665a1b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user