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!(