Skip to content

Commit

Permalink
Format with rustfmt 1.7.0-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 2, 2024
1 parent 49082fa commit a803115
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ impl Parse for Input {
attrs,
})
}
Fields::Named(_) | Fields::Unnamed(_) => {
Err(Error::new(variant.ident.span(), "must be a unit variant to use serde_repr derive"))
}
Fields::Named(_) | Fields::Unnamed(_) => Err(Error::new(
variant.ident.span(),
"must be a unit variant to use serde_repr derive",
)),
})
.collect::<Result<Vec<Variant>>>()?;

Expand Down

0 comments on commit a803115

Please sign in to comment.