Skip to content

Commit

Permalink
style: add newline.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed Jan 6, 2024
1 parent 9b13318 commit 50a969c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions serde_valid_derive/src/validate/meta/meta_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub fn extract_validator_from_meta_list(
rename_map,
)
}

(_, Ok(validation_type), _, syn::Meta::List(list)) => {
extract_validator_from_nested_meta_list(
field,
Expand All @@ -74,6 +75,7 @@ pub fn extract_validator_from_meta_list(
rename_map,
)
}

(_, _, Ok(validation_type), syn::Meta::NameValue(name_value)) => {
extract_validator_from_nested_meta_name_value(
field,
Expand All @@ -83,18 +85,22 @@ pub fn extract_validator_from_meta_list(
rename_map,
)
}

(Ok(_), _, _, _) => Err(vec![crate::Error::validate_meta_path_need_value(
validation_path,
&validation_name,
)]),

(_, Ok(_), _, _) => Err(vec![crate::Error::validate_meta_list_need_value(
validation_path,
&validation_name,
)]),

(_, _, Ok(_), _) => Err(vec![crate::Error::validate_meta_name_value_need_value(
validation_path,
&validation_name,
)]),

_ => Err(vec![crate::Error::validate_unknown_type(
validation_path,
&validation_name,
Expand Down

0 comments on commit 50a969c

Please sign in to comment.