Skip to content

Commit

Permalink
feat: fixed cargo fmt issue on derive crate
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-cne committed Apr 12, 2024
1 parent e9135ce commit 3391089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/derives/src/filter_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn collect_fields(data: &Data) -> FieldCollection {
})
.fold(FieldCollection::default(), |mut acc, f| {
match f {
FieldValidation::Skip(_) => (),
FieldValidation::Skip => (),
FieldValidation::Unique(ident) => {
acc.unique.push(ident.clone());
acc.unskiped.push(ident);
Expand Down Expand Up @@ -134,7 +134,7 @@ struct FieldCollection {
}

enum FieldValidation {
Skip(Ident),
Skip,
Unique(Ident),
Compatible(Ident, Vec<Ident>),
All(Ident),
Expand Down Expand Up @@ -167,7 +167,7 @@ impl FieldValidation {
});

if skip {
Self::Skip(ident)
Self::Skip
} else if unique {
Self::Unique(ident)
} else if let Some(compatible) = compatible {
Expand Down

0 comments on commit 3391089

Please sign in to comment.