Fixed class method indentation

This commit is contained in:
2026-06-15 15:08:48 +02:00
parent 12cf4e94d8
commit 1163849039
+1 -1
View File
@@ -522,7 +522,7 @@ fn construct_pattern(pat: &Pattern, idx: usize) -> Pattern {
} }
pub fn gen_method_point(method: &FunctionDecl, ctx: &mut Context, cg: &mut RustCodegen) { pub fn gen_method_point(method: &FunctionDecl, ctx: &mut Context, cg: &mut RustCodegen) {
cg.add(&format!( cg.add_indented(&format!(
"{}fn {}{}(", "{}fn {}{}(",
method.visibility.get_rust(), method.visibility.get_rust(),
method.name.get_rust(), method.name.get_rust(),