Skip to content

Commit 7584e1d

Browse files
authored
ringbuf: Remove unused #[used] we weren't using (#2170)
This commit removes one more instance of the `#[used]` attribute in `ringbuf` that we don't actually need --- in the macro that generates `counted_ringbuf!`s when counters are enabled but the actual ringbuf isn't. I had somehow forgotten this in #2167, my bad!
1 parent a48fa97 commit 7584e1d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/ringbuf/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,13 @@ macro_rules! counted_ringbuf {
381381
#[macro_export]
382382
macro_rules! counted_ringbuf {
383383
($name:ident, $t:ident, $n:expr, $init:expr, no_dedup) => {
384-
#[used]
385384
static $name: $crate::CountedRingbuf<$t, (), $n> =
386385
$crate::CountedRingbuf {
387386
counters: <$t as $crate::Count>::NEW_COUNTERS,
388387
_c: core::marker::PhantomData,
389388
};
390389
};
391390
($name:ident, $t:ident, $n:expr, $init:expr) => {
392-
#[used]
393391
static $name: $crate::CountedRingbuf<$t, u16, $n> =
394392
$crate::CountedRingbuf {
395393
counters: <$t as $crate::Count>::NEW_COUNTERS,

0 commit comments

Comments
 (0)