We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 219fd62 commit ad43c56Copy full SHA for ad43c56
crates/kotlin/src/lib.rs
@@ -1198,7 +1198,10 @@ impl InterfaceGenerator<'_> {
1198
} = f;
1199
1200
self.src.push_str(&String::from(src));
1201
- self.src.push_str("}\n");
+ // because the withScopedMemoryAllocator opening line doesn't perfectly end with '{',
1202
+ // the auto-indentation doesn't work on that. So also make the closing '}' not perfect,
1203
+ // so that the indents don't get messed up globally, only locally.
1204
+ self.src.push_str("/* free memory allocator */}\n");
1205
self.src.push_str("// </editor-fold>\n");
1206
self.src.push_str("}\n");
1207
if let FunctionKind::Constructor(_) = func.kind {
0 commit comments