Skip to content

Commit 5c2b968

Browse files
committed
Address all Clippy warnings for: "inequality checks against true can be replaced by a negation."
1 parent 20b2516 commit 5c2b968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp32-wroom-rp/src/gpio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ where
130130
}
131131

132132
fn wait_for_esp_ready(&self) {
133-
while self.get_esp_ready() != true {
133+
while !self.get_esp_ready() {
134134
//cortex_m::asm::nop(); // Make sure rustc doesn't optimize this loop out
135135
}
136136
}
137137

138138
fn wait_for_esp_ack(&self) {
139-
while self.get_esp_ack() == false {
139+
while !self.get_esp_ack() {
140140
//cortex_m::asm::nop(); // Make sure rustc doesn't optimize this loop out
141141
}
142142
}

0 commit comments

Comments
 (0)