From 6ddc7463d5fcca98df23d7730deff04823eb6efb Mon Sep 17 00:00:00 2001 From: Viktor Sonesten Date: Sun, 21 Nov 2021 01:14:46 +0100 Subject: dwt: fix clippy::bool_comparison --- src/peripheral/dwt.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3