Fix new clippy warnings since Rust 1.57 (#507)
This commit is contained in:
parent
289a57e330
commit
f0c743a636
|
@ -1049,10 +1049,10 @@ fn generate_function_pointers<'a>(
|
|||
let pfn_typedefs = commands
|
||||
.iter()
|
||||
.filter(|pfn| pfn.type_needs_defining)
|
||||
.map(|pfn| CommandToType(pfn));
|
||||
let members = commands.iter().map(|pfn| CommandToMember(pfn));
|
||||
let loaders = commands.iter().map(|pfn| CommandToLoader(pfn));
|
||||
let bodies = commands.iter().map(|pfn| CommandToBody(pfn));
|
||||
.map(CommandToType);
|
||||
let members = commands.iter().map(CommandToMember);
|
||||
let loaders = commands.iter().map(CommandToLoader);
|
||||
let bodies = commands.iter().map(CommandToBody);
|
||||
|
||||
quote! {
|
||||
#(#pfn_typedefs)*
|
||||
|
|
Loading…
Reference in a new issue