Allow empty #[validate] attributes.

Fixes #109
This commit is contained in:
Graham Esau 2021-09-20 16:48:16 +01:00
parent 00e482c3a1
commit de7314f305
3 changed files with 10 additions and 4 deletions

View file

@ -99,7 +99,7 @@ impl ValidationAttrs {
for meta_item in attrs
.iter()
.flat_map(|attr| get_meta_items(attr, attr_type, errors))
.flat_map(|attr| get_meta_items(attr, attr_type, errors, ignore_errors))
.flatten()
{
match &meta_item {