Force clippy for the whole workspace
This commit is contained in:
parent
3c50b7da79
commit
caf88fcb45
4 changed files with 8 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@ name = "macros"
|
|||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ enum FieldOrClosure {
|
|||
|
||||
impl Parse for FieldOrClosure {
|
||||
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#![deny(clippy::all)]
|
||||
|
||||
mod clientside;
|
||||
mod data_device;
|
||||
mod server;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue