Skip to content

Commit 6ddc746

Browse files
committed
dwt: fix clippy::bool_comparison
1 parent c470f8b commit 6ddc746

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/peripheral/dwt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,28 +103,28 @@ impl DWT {
103103
#[cfg(not(armv6m))]
104104
#[inline]
105105
pub fn has_exception_trace(&self) -> bool {
106-
self.ctrl.read().notrcpkt() == false
106+
!self.ctrl.read().notrcpkt()
107107
}
108108

109109
/// Returns `true` if the implementation includes external match signals
110110
#[cfg(not(armv6m))]
111111
#[inline]
112112
pub fn has_external_match(&self) -> bool {
113-
self.ctrl.read().noexttrig() == false
113+
!self.ctrl.read().noexttrig()
114114
}
115115

116116
/// Returns `true` if the implementation supports a cycle counter
117117
#[cfg(not(armv6m))]
118118
#[inline]
119119
pub fn has_cycle_counter(&self) -> bool {
120-
self.ctrl.read().nocyccnt() == false
120+
!self.ctrl.read().nocyccnt()
121121
}
122122

123123
/// Returns `true` if the implementation the profiling counters
124124
#[cfg(not(armv6m))]
125125
#[inline]
126126
pub fn has_profiling_counter(&self) -> bool {
127-
self.ctrl.read().noprfcnt() == false
127+
!self.ctrl.read().noprfcnt()
128128
}
129129

130130
/// Enables the cycle counter

0 commit comments

Comments
 (0)