We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 968485f commit b666289Copy full SHA for b666289
src/peripheral/dwt.rs
@@ -153,7 +153,7 @@ impl DWT {
153
pub fn has_cycle_counter() -> bool {
154
#[cfg(not(armv6m))]
155
// NOTE(unsafe) atomic read with no side effects
156
- return !unsafe { (*DWT::PTR).ctrl.read().nocyccnt() };
+ return unsafe { !(*DWT::PTR).ctrl.read().nocyccnt() };
157
158
#[cfg(armv6m)]
159
return false;
@@ -164,7 +164,7 @@ impl DWT {
164
#[inline]
165
pub fn has_profiling_counter() -> bool {
166
167
- !unsafe { (*DWT::PTR).ctrl.read().noprfcnt() }
+ unsafe { !(*DWT::PTR).ctrl.read().noprfcnt() }
168
}
169
170
/// Enables the cycle counter
0 commit comments