From c4c1bc02bc9a634057228ee93f58ad413842e7ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Clulow" Date: Sat, 19 Jun 2021 08:08:18 +0000 Subject: [PATCH] rustfmt --- rustfmt.toml | 2 ++ src/main.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml 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); }