We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7827d78 commit 451ec9fCopy full SHA for 451ec9f
gen/src/write.rs
@@ -54,7 +54,7 @@ fn gen_namespace_contents(
54
let apis = ns_entries.entries();
55
56
out.next_section();
57
- for api in apis.into_iter() {
+ for api in apis.iter() {
58
match api {
59
Api::Struct(strct) => write_struct_decl(out, &strct.ident.cxx.ident),
60
Api::CxxType(ety) => write_struct_using(out, &ety.ident.cxx),
@@ -64,7 +64,7 @@ fn gen_namespace_contents(
64
}
65
66
let mut methods_for_type = HashMap::new();
67
68
if let Api::RustFunction(efn) = api {
69
if let Some(receiver) = &efn.sig.receiver {
70
methods_for_type
0 commit comments