From caf88fcb450afb380cbe74de882ddc11a05a9355 Mon Sep 17 00:00:00 2001 From: Shawn Wallace Date: Thu, 13 Mar 2025 00:45:15 -0400 Subject: [PATCH] Force clippy for the whole workspace --- Cargo.toml | 4 ++++ macros/Cargo.toml | 3 +++ macros/src/lib.rs | 2 +- src/lib.rs | 2 -- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f5e83c0..dea75ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] members = ["macros"] + [workspace.dependencies] wayland-client = "0.31.2" wayland-protocols = "0.32.0" @@ -7,6 +8,9 @@ wayland-scanner = "0.31.1" wayland-server = "0.31.1" rustix = "0.38.31" +[workspace.lints.clippy] +all = "deny" + [package] name = "xwayland-satellite" version = "0.5.1" diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 33d3b94..8aae76e 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -3,6 +3,9 @@ name = "macros" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] proc-macro = true diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 62963be..c30d94d 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -12,7 +12,7 @@ enum FieldOrClosure { impl Parse for FieldOrClosure { fn parse(input: syn::parse::ParseStream) -> syn::Result { - input.parse().map(|ident| Self::Field(ident)).or_else(|_| { + input.parse().map(Self::Field).or_else(|_| { input.parse().map(|mut closure: syn::ExprClosure| { assert_eq!(closure.inputs.len(), 1); let syn::Pat::Ident(arg) = closure.inputs.pop().unwrap().into_value() else { diff --git a/src/lib.rs b/src/lib.rs index de1782e..416fedd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,3 @@ -#![deny(clippy::all)] - mod clientside; mod data_device; mod server;