From c845a3683e9dda42c0aa9a13dd32ee1d9c74b752 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 10 Jun 2020 16:56:22 -0700 Subject: [PATCH] rustfmt --- codegen/src/type_gen.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/codegen/src/type_gen.rs b/codegen/src/type_gen.rs index 010b30c5..485442a3 100644 --- a/codegen/src/type_gen.rs +++ b/codegen/src/type_gen.rs @@ -319,12 +319,7 @@ fn make_impl(w: &mut BufWriter, types: &BTreeMap) { .unwrap(); for (oid, type_) in types { - writeln!( - w, - " {} => Some(Inner::{}),", - oid, type_.variant - ) - .unwrap(); + writeln!(w, " {} => Some(Inner::{}),", oid, type_.variant).unwrap(); } writeln!( @@ -339,12 +334,7 @@ fn make_impl(w: &mut BufWriter, types: &BTreeMap) { .unwrap(); for (oid, type_) in types { - writeln!( - w, - " Inner::{} => {},", - type_.variant, oid - ) - .unwrap(); + writeln!(w, " Inner::{} => {},", type_.variant, oid).unwrap(); } writeln!(