Skip to content

Commit e36e665

Browse files
Fix unused warnings with mpmc disabled
1 parent 3343ada commit e36e665

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/storage.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ use core::borrow::{Borrow, BorrowMut};
55
pub(crate) trait SealedStorage {
66
type Buffer<T>: ?Sized + Borrow<[T]> + BorrowMut<[T]>;
77
/// Obtain the length of the buffer
8+
#[allow(unused)]
89
fn len<T>(this: *const Self::Buffer<T>) -> usize;
910
/// Obtain access to the first element of the buffer
11+
#[allow(unused)]
1012
fn as_ptr<T>(this: *mut Self::Buffer<T>) -> *mut T;
1113
}
1214

0 commit comments

Comments
 (0)