Skip to content

Commit 68ec441

Browse files
committed
Format code
1 parent b3d767e commit 68ec441

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

libcc2rs-macros/src/state_machine.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ impl GotoStateMachine {
6666
}
6767
}
6868

69-
fn bailout(should_emit: bool, flag: &Ident, stmt: TokenStream2) -> (TokenStream2, TokenStream2) {
69+
fn bailout(
70+
should_emit: bool,
71+
flag: &Ident,
72+
stmt: TokenStream2,
73+
) -> (TokenStream2, TokenStream2) {
7074
if !should_emit {
7175
return (TokenStream2::new(), TokenStream2::new());
7276
}
@@ -103,8 +107,10 @@ impl StateMachine for GotoStateMachine {
103107
})
104108
.collect();
105109

106-
let (brk_decl, brk_bailout) = Self::bailout(arms_have_break, &break_flag, quote! { break; });
107-
let (cnt_decl, cnt_bailout) = Self::bailout(arms_have_continue, &cont_flag, quote! { continue; });
110+
let (brk_decl, brk_bailout) =
111+
Self::bailout(arms_have_break, &break_flag, quote! { break; });
112+
let (cnt_decl, cnt_bailout) =
113+
Self::bailout(arms_have_continue, &cont_flag, quote! { continue; });
108114

109115
quote! {{
110116
#brk_decl

0 commit comments

Comments
 (0)