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
|
let pfn_typedefs = commands
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|pfn| pfn.type_needs_defining)
|
.filter(|pfn| pfn.type_needs_defining)
|
||||||
.map(|pfn| CommandToType(pfn));
|
.map(CommandToType);
|
||||||
let members = commands.iter().map(|pfn| CommandToMember(pfn));
|
let members = commands.iter().map(CommandToMember);
|
||||||
let loaders = commands.iter().map(|pfn| CommandToLoader(pfn));
|
let loaders = commands.iter().map(CommandToLoader);
|
||||||
let bodies = commands.iter().map(|pfn| CommandToBody(pfn));
|
let bodies = commands.iter().map(CommandToBody);
|
||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
#(#pfn_typedefs)*
|
#(#pfn_typedefs)*
|
||||||
|
|
Loading…
Reference in a new issue