We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe3410 commit 28b6d71Copy full SHA for 28b6d71
2 files changed
libcc2rs-macros/src/state_machine.rs
@@ -140,8 +140,8 @@ pub struct SwitchStateMachine {
140
141
impl SwitchStateMachine {
142
// Rewrite break into break '__sm
143
- fn convert_break_to_switch_exit(arms: &Vec<Arm>, label: &Lifetime) -> Vec<Arm> {
144
- arms.into_iter()
+ fn convert_break_to_switch_exit(arms: &[Arm], label: &Lifetime) -> Vec<Arm> {
+ arms.iter()
145
.map(|a| {
146
let mut body = a.body.clone();
147
ExitSwitchRewriter {
libcc2rs-macros/src/switch.rs
@@ -25,7 +25,7 @@ pub fn expand(input: TokenStream) -> TokenStream {
25
}
26
SwitchStateMachine {
27
goto: GotoStateMachine { arms: cfg_arms },
28
- condition: condition,
+ condition,
29
cases,
30
31
.emit()
0 commit comments