diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..0c2ca5c --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,2 @@ +edition = "2018" +max_width = 80 diff --git a/src/main.rs b/src/main.rs index c3cfdba..1cfb165 100644 --- a/src/main.rs +++ b/src/main.rs @@ -924,7 +924,7 @@ fn gen(api: &OpenAPI, ts: &mut TypeSpace) -> Result { a(&format!( " ) -> Result<{}> {{", ts.render_type(&tid)? - )); + )); } else { bail!("media type encoding, no schema: {:#?}", mt); }