Skip to content

Commit

Permalink
apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Oct 28, 2020
1 parent 3e5f3ce commit cb52863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/src/bitfield.rs
Expand Up @@ -68,12 +68,12 @@ impl TryFrom<(&mut Config, syn::ItemStruct)> for BitfieldStruct {
type Error = syn::Error;

fn try_from(
(config, mut item_struct): (&mut Config, syn::ItemStruct),
(config, item_struct): (&mut Config, syn::ItemStruct),
) -> Result<Self> {
Self::ensure_has_fields(&item_struct)?;
Self::ensure_no_generics(&item_struct)?;
Self::ensure_no_bits_markers(&item_struct)?;
Self::extract_repr(&mut item_struct.attrs, config)?;
Self::extract_repr(&item_struct.attrs, config)?;
Ok(Self { item_struct })
}
}
Expand Down

0 comments on commit cb52863

Please sign in to comment.