1 // rustfmt-max_width: 110
2 // rustfmt-use_small_heuristics: Max
3 // rustfmt-hard_tabs: true
4 // rustfmt-use_field_init_shorthand: true
5 // rustfmt-overflow_delimited_expr: true
6
7 // https://github.com/rust-lang/rustfmt/issues/4049
foo()8 fn foo() {
9 {
10 {
11 if let Some(MpcEv::PlayDrum(pitch, vel)) =
12 // self.mpc.handle_input(e, /*btn_ctrl_down,*/ tx_launch_to_daw, state_view)
13 self.mpc.handle_input(e, &mut MyBorrowedState { tx_launch_to_daw, state_view })
14 {
15 println!("bar");
16 }
17
18 if let Some(e) =
19 // self.note_input.handle_input(e, /*btn_ctrl_down,*/ tx_launch_to_daw, state_view)
20 self.note_input.handle_input(e, &mut MyBorrowedState { tx_launch_to_daw, state_view })
21 {
22 println!("baz");
23 }
24 }
25 }
26 }
27