We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88f864 commit 50588d9Copy full SHA for 50588d9
nrf52840-hal/src/ieee802154.rs
@@ -3,6 +3,7 @@
3
use core::{
4
ops::{self, RangeFrom},
5
sync::atomic::{self, Ordering},
6
+ marker::PhantomData,
7
};
8
9
use embedded_hal::timer::CountDown as _;
@@ -23,7 +24,7 @@ pub struct Radio<'c> {
23
24
// RADIO needs to be (re-)enabled to pick up new settings
25
needs_enable: bool,
26
// used to freeze `Clocks`
- _clocks: &'c (),
27
+ _clocks: PhantomData<&'c ()>,
28
}
29
30
/// Default Clear Channel Assessment method = Carrier sense
@@ -153,7 +154,7 @@ impl<'c> Radio<'c> {
153
154
let mut radio = Self {
155
needs_enable: false,
156
radio,
- _clocks: &(),
157
+ _clocks: PhantomData,
158
159
160
// shortcuts will be kept off by default and only be temporarily enabled within blocking
0 commit comments