Skip to content

Commit c845a36

Browse files
committed
rustfmt
1 parent 3e67dbb commit c845a36

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

codegen/src/type_gen.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,7 @@ fn make_impl(w: &mut BufWriter<File>, types: &BTreeMap<u32, Type>) {
319319
.unwrap();
320320

321321
for (oid, type_) in types {
322-
writeln!(
323-
w,
324-
" {} => Some(Inner::{}),",
325-
oid, type_.variant
326-
)
327-
.unwrap();
322+
writeln!(w, " {} => Some(Inner::{}),", oid, type_.variant).unwrap();
328323
}
329324

330325
writeln!(
@@ -339,12 +334,7 @@ fn make_impl(w: &mut BufWriter<File>, types: &BTreeMap<u32, Type>) {
339334
.unwrap();
340335

341336
for (oid, type_) in types {
342-
writeln!(
343-
w,
344-
" Inner::{} => {},",
345-
type_.variant, oid
346-
)
347-
.unwrap();
337+
writeln!(w, " Inner::{} => {},", type_.variant, oid).unwrap();
348338
}
349339

350340
writeln!(

0 commit comments

Comments
 (0)