diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-10-02 15:20:03 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-10-02 15:20:03 +0300 |
| commit | f3a1ff786f0a29501a52f47bb1e800213e87acec (patch) | |
| tree | c245a0463f9d5d8ff9bce85289ef06396db22275 | |
| parent | a6e6f9c58b951459a73497618fc523d96de24fba (diff) | |
| download | rust-f3a1ff786f0a29501a52f47bb1e800213e87acec.tar.gz rust-f3a1ff786f0a29501a52f47bb1e800213e87acec.zip | |
minor: generated code readability
| -rw-r--r-- | crates/syntax/src/tests/sourcegen_ast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/syntax/src/tests/sourcegen_ast.rs b/crates/syntax/src/tests/sourcegen_ast.rs index 564cf6663cb..c9f3c2cb8e1 100644 --- a/crates/syntax/src/tests/sourcegen_ast.rs +++ b/crates/syntax/src/tests/sourcegen_ast.rs @@ -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) { |
