Remove unnecessary parentheses

This was spotted by a lint on nightly Rust.
This commit is contained in:
Daniel Rainer
2025-08-19 00:26:21 +02:00
parent feaec20de6
commit ce7733c75f

View File

@@ -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"
);