Skip to content

Commit b666289

Browse files
committed
review comments
1 parent 968485f commit b666289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peripheral/dwt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl DWT {
153153
pub fn has_cycle_counter() -> bool {
154154
#[cfg(not(armv6m))]
155155
// NOTE(unsafe) atomic read with no side effects
156-
return !unsafe { (*DWT::PTR).ctrl.read().nocyccnt() };
156+
return unsafe { !(*DWT::PTR).ctrl.read().nocyccnt() };
157157

158158
#[cfg(armv6m)]
159159
return false;
@@ -164,7 +164,7 @@ impl DWT {
164164
#[inline]
165165
pub fn has_profiling_counter() -> bool {
166166
// NOTE(unsafe) atomic read with no side effects
167-
!unsafe { (*DWT::PTR).ctrl.read().noprfcnt() }
167+
unsafe { !(*DWT::PTR).ctrl.read().noprfcnt() }
168168
}
169169

170170
/// Enables the cycle counter

0 commit comments

Comments
 (0)