aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Viktor Sonesten <v@tmplt.dev> 2021-11-21 01:14:46 +0100
committerGravatar Viktor Sonesten <v@tmplt.dev> 2021-11-21 01:14:46 +0100
commit6ddc7463d5fcca98df23d7730deff04823eb6efb (patch)
treecab741291fd73afdcc77fb5a56ba2d49c8f268be /src
parentc470f8bc9a62fa6305fffca22ece972733739453 (diff)
downloadcortex-m-6ddc7463d5fcca98df23d7730deff04823eb6efb.tar.gz
cortex-m-6ddc7463d5fcca98df23d7730deff04823eb6efb.tar.zst
cortex-m-6ddc7463d5fcca98df23d7730deff04823eb6efb.zip
dwt: fix clippy::bool_comparison
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/dwt.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peripheral/dwt.rs b/src/peripheral/dwt.rs
index 188681b..73f90ce 100644
--- a/src/peripheral/dwt.rs
+++ b/src/peripheral/dwt.rs
@@ -103,28 +103,28 @@ impl DWT {
#[cfg(not(armv6m))]
#[inline]
pub fn has_exception_trace(&self) -> bool {
- self.ctrl.read().notrcpkt() == false
+ !self.ctrl.read().notrcpkt()
}
/// Returns `true` if the implementation includes external match signals
#[cfg(not(armv6m))]
#[inline]
pub fn has_external_match(&self) -> bool {
- self.ctrl.read().noexttrig() == false
+ !self.ctrl.read().noexttrig()
}
/// Returns `true` if the implementation supports a cycle counter
#[cfg(not(armv6m))]
#[inline]
pub fn has_cycle_counter(&self) -> bool {
- self.ctrl.read().nocyccnt() == false
+ !self.ctrl.read().nocyccnt()
}
/// Returns `true` if the implementation the profiling counters
#[cfg(not(armv6m))]
#[inline]
pub fn has_profiling_counter(&self) -> bool {
- self.ctrl.read().noprfcnt() == false
+ !self.ctrl.read().noprfcnt()
}
/// Enables the cycle counter