Force clippy for the whole workspace

This commit is contained in:
Shawn Wallace 2025-03-13 00:45:15 -04:00
parent 3c50b7da79
commit caf88fcb45
4 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,9 @@ name = "macros"
version = "0.1.0"
edition = "2021"
[lints]
workspace = true
[lib]
proc-macro = true

View file

@ -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 {