Skip to content

Commit f50c416

Browse files
committed
Fix new clippy warnings
1 parent d8532ef commit f50c416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enumflags_derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn gen_enumflags(ast: &mut ItemEnum, default: Vec<Ident>) -> Result<TokenStream,
269269
let span = Span::call_site();
270270

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

0 commit comments

Comments
 (0)