Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::bool_comparison` (#8769)
Marshall Bowersbfc648553fee
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex bb388a35107..2ae53d40d22 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -487,21 +487,21 @@ impl TerminalBuilder {}}- if events.is_empty() && wakeup == false {+ if events.is_empty() && !wakeup {smol::future::yield_now().await;break 'outer;- } else {- terminal.update(&mut cx, |this, cx| {- if wakeup {- this.process_event(&AlacTermEvent::Wakeup, cx);- }-- for event in events {- this.process_event(&event, cx);- }- })?;- smol::future::yield_now().await;}++ terminal.update(&mut cx, |this, cx| {+ if wakeup {+ this.process_event(&AlacTermEvent::Wakeup, cx);+ }++ for event in events {+ this.process_event(&event, cx);+ }+ })?;+ smol::future::yield_now().await;}}diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 45e52411608..2862d27d515 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -80,7 +80,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::almost_complete_range","clippy::arc_with_non_send_sync","clippy::await_holding_lock",- "clippy::bool_comparison","clippy::borrow_deref_ref","clippy::borrowed_box","clippy::cast_abs_to_unsigned",