mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
minor: generated code readability
This commit is contained in:
parent
a6e6f9c58b
commit
f3a1ff786f
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: &AstSrc) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(res))
|
||||
let res = sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(res));
|
||||
res.replace("#[derive", "\n#[derive")
|
||||
}
|
||||
|
||||
fn write_doc_comment(contents: &[String], dest: &mut String) {
|
||||
|
|
Loading…
Reference in a new issue