Force clippy for the whole workspace
This commit is contained in:
parent
3c50b7da79
commit
caf88fcb45
4 changed files with 8 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue