Add a newline between items (#5)

This commit is contained in:
Adam Leventhal 2021-10-03 20:31:53 -07:00 committed by GitHub
parent 865dbd4be4
commit 874f959a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -824,7 +824,10 @@ fn generate(api: &OpenAPI, ts: &mut TypeSpace) -> Result<String> {
#(#methods)*
}
};
let file = rustfmt_wrapper::rustfmt(file).unwrap();
let file = rustfmt_wrapper::rustfmt(file)
.unwrap()
// Format any indented item.
.replace(" }\n", " }\n\n");
Ok(file)
}