Skip to content

Commit

Permalink
Fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Apr 1, 2023
1 parent d8532ef commit f50c416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumflags_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ fn gen_enumflags(ast: &mut ItemEnum, default: Vec<Ident>) -> Result<TokenStream,
let span = Span::call_site();

let repr = extract_repr(&ast.attrs)?
.ok_or_else(|| syn::Error::new_spanned(&ident,
.ok_or_else(|| syn::Error::new_spanned(ident,
"repr attribute missing. Add #[repr(u64)] or a similar attribute to specify the size of the bitfield."))?;
let bits = type_bits(&repr)?;

Expand Down

0 comments on commit f50c416

Please sign in to comment.