From 6508449005ad024895ce66d38d61bde39ef5aec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 1 Jul 2024 10:27:57 +0200 Subject: [PATCH] Fix unused warnings with `mpmc` disabled --- src/storage.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage.rs b/src/storage.rs index 6daa4e5719..90cedd15a1 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -5,8 +5,10 @@ use core::borrow::{Borrow, BorrowMut}; pub(crate) trait SealedStorage { type Buffer: ?Sized + Borrow<[T]> + BorrowMut<[T]>; /// Obtain the length of the buffer + #[allow(unused)] fn len(this: *const Self::Buffer) -> usize; /// Obtain access to the first element of the buffer + #[allow(unused)] fn as_ptr(this: *mut Self::Buffer) -> *mut T; }