Skip to content

Commit

Permalink
fix: darling unexpected literal type error (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvincent2 authored Jul 25, 2024
1 parent c6c1808 commit 9a5880c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl ToTokens for ValidateField {
// The "supports(struct_named)" attribute guarantees only named structs to work with this macro
#[derive(Debug, FromDeriveInput)]
#[darling(attributes(validate), supports(struct_named))]
#[darling(and_then = ValidationData::validate)]
#[darling(and_then = "ValidationData::validate")]
struct ValidationData {
ident: syn::Ident,
generics: syn::Generics,
Expand Down

0 comments on commit 9a5880c

Please sign in to comment.