Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 27, 2021
1 parent fe64d53 commit e21af53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where
};
let stmt = Type::create()
.as_enum(Alias::new(name))
.values(values.into_iter().map(|val| Alias::new(val.as_str())))
.values(values.iter().map(|val| Alias::new(val.as_str())))
.to_owned();
vec.push(stmt);
}
Expand Down

0 comments on commit e21af53

Please sign in to comment.