Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::unit_arg` (#8742)
Marshall Bowers008c5053e63f
diff --git a/crates/gpui/src/platform/mac/platform.rs b/crates/gpui/src/platform/mac/platform.rsindex 76039735056..0a60fd51723 100644--- a/crates/gpui/src/platform/mac/platform.rs+++ b/crates/gpui/src/platform/mac/platform.rs@@ -497,7 +497,7 @@ impl Platform for MacPlatform {options: WindowOptions,) -> Box<dyn PlatformWindow> {// Clippy thinks that this evaluates to `()`, for some reason.- #[allow(clippy::clone_on_copy)]+ #[allow(clippy::unit_arg, clippy::clone_on_copy)]let renderer_context = self.0.lock().renderer_context.clone();Box::new(MacWindow::open(handle,diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex ed28b5710ee..a853dc29e63 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -121,7 +121,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::single_range_in_vec_init","clippy::suspicious_to_owned","clippy::type_complexity",- "clippy::unit_arg","clippy::unnecessary_operation","clippy::unnecessary_to_owned","clippy::unnecessary_unwrap",