diff --git a/src/main.rs b/src/main.rs index 01da9fa..e7197ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -824,7 +824,10 @@ fn generate(api: &OpenAPI, ts: &mut TypeSpace) -> Result { #(#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) }