Fixed class method indentation
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user