Skip to content

Commit 50588d9

Browse files
committed
phantom field
1 parent c88f864 commit 50588d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nrf52840-hal/src/ieee802154.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use core::{
44
ops::{self, RangeFrom},
55
sync::atomic::{self, Ordering},
6+
marker::PhantomData,
67
};
78

89
use embedded_hal::timer::CountDown as _;
@@ -23,7 +24,7 @@ pub struct Radio<'c> {
2324
// RADIO needs to be (re-)enabled to pick up new settings
2425
needs_enable: bool,
2526
// used to freeze `Clocks`
26-
_clocks: &'c (),
27+
_clocks: PhantomData<&'c ()>,
2728
}
2829

2930
/// Default Clear Channel Assessment method = Carrier sense
@@ -153,7 +154,7 @@ impl<'c> Radio<'c> {
153154
let mut radio = Self {
154155
needs_enable: false,
155156
radio,
156-
_clocks: &(),
157+
_clocks: PhantomData,
157158
};
158159

159160
// shortcuts will be kept off by default and only be temporarily enabled within blocking

0 commit comments

Comments
 (0)