diff --git a/lib/ringbuf/src/lib.rs b/lib/ringbuf/src/lib.rs index a5182ff0f2..29133f8f57 100644 --- a/lib/ringbuf/src/lib.rs +++ b/lib/ringbuf/src/lib.rs @@ -381,7 +381,6 @@ macro_rules! counted_ringbuf { #[macro_export] macro_rules! counted_ringbuf { ($name:ident, $t:ident, $n:expr, $init:expr, no_dedup) => { - #[used] static $name: $crate::CountedRingbuf<$t, (), $n> = $crate::CountedRingbuf { counters: <$t as $crate::Count>::NEW_COUNTERS, @@ -389,7 +388,6 @@ macro_rules! counted_ringbuf { }; }; ($name:ident, $t:ident, $n:expr, $init:expr) => { - #[used] static $name: $crate::CountedRingbuf<$t, u16, $n> = $crate::CountedRingbuf { counters: <$t as $crate::Count>::NEW_COUNTERS,