Skip to content

Commit

Permalink
Tweak code style
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 26, 2024
1 parent 6aefde4 commit ed68996
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pin-project-internal/src/pin_project/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,7 @@ fn visit_fields<'a>(
let mut proj_move = TokenStream::new();
let mut pinned_bindings = Vec::with_capacity(fields.len());

for (i, Field { attrs, vis, ident, colon_token, ty, mutability: _ }) in
fields.iter().enumerate()
{
for (i, Field { attrs, vis, ident, colon_token, ty, .. }) in fields.iter().enumerate() {
let binding = ident.clone().unwrap_or_else(|| format_ident!("_{}", i));
proj_pat.extend(quote!(#binding,));
let lifetime = &cx.proj.lifetime;
Expand Down

0 comments on commit ed68996

Please sign in to comment.