From ce7733c75f7e1a20c9c4e1754d590167c1197f05 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Tue, 19 Aug 2025 00:26:21 +0200 Subject: [PATCH] Remove unnecessary parentheses This was spotted by a lint on nightly Rust. --- src/topic_monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topic_monitor.rs b/src/topic_monitor.rs index 6bf28418d..614cf6ba3 100644 --- a/src/topic_monitor.rs +++ b/src/topic_monitor.rs @@ -380,7 +380,7 @@ pub fn post(&self, topic: Topic) { } // Note that if the STATUS_NEEDS_WAKEUP bit is set, no other bits must be set. assert!( - ((oldstatus == STATUS_NEEDS_WAKEUP) == ((oldstatus & STATUS_NEEDS_WAKEUP) != 0)), + (oldstatus == STATUS_NEEDS_WAKEUP) == ((oldstatus & STATUS_NEEDS_WAKEUP) != 0), "If STATUS_NEEDS_WAKEUP is set no other bits should be set" );