Skip to content

Commit 451ec9f

Browse files
committed
Clippy fixes.
1 parent 7827d78 commit 451ec9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen/src/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn gen_namespace_contents(
5454
let apis = ns_entries.entries();
5555

5656
out.next_section();
57-
for api in apis.into_iter() {
57+
for api in apis.iter() {
5858
match api {
5959
Api::Struct(strct) => write_struct_decl(out, &strct.ident.cxx.ident),
6060
Api::CxxType(ety) => write_struct_using(out, &ety.ident.cxx),
@@ -64,7 +64,7 @@ fn gen_namespace_contents(
6464
}
6565

6666
let mut methods_for_type = HashMap::new();
67-
for api in apis.into_iter() {
67+
for api in apis.iter() {
6868
if let Api::RustFunction(efn) = api {
6969
if let Some(receiver) = &efn.sig.receiver {
7070
methods_for_type

0 commit comments

Comments
 (0)