Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Aug 13, 2023
1 parent 1182bc3 commit 590a8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion num_enum_derive/src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl EnumInfo {
) -> Result<(Ident, Option<ErrorType>)> {
let mut maybe_repr = None;
let mut maybe_error_type = None;
while let Some(attr) = attrs.next() {
for attr in attrs {
if let Meta::List(meta_list) = &attr.meta {
if let Some(ident) = meta_list.path.get_ident() {
if ident == "repr" {
Expand Down

0 comments on commit 590a8b5

Please sign in to comment.