Skip to content

Commit

Permalink
feat(derive): make #[diagnostic] optional for enums, too
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 8, 2021
1 parent 824cd8b commit ffe1b55
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions miette-derive/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ impl Diagnostic {
fields: var.fields,
args,
});
} else {
// Also handle when there's multiple `#[diagnostic]` attrs?
return Err(syn::Error::new(
var.ident.span(),
"#[diagnostic] attribute is required on all enum variants when deriving Diagnostic.",
));
}
}
Diagnostic::Enum {
Expand Down

0 comments on commit ffe1b55

Please sign in to comment.