Skip to content

Commit 28b6d71

Browse files
committed
clippy
1 parent afe3410 commit 28b6d71

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libcc2rs-macros/src/state_machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ pub struct SwitchStateMachine {
140140

141141
impl SwitchStateMachine {
142142
// Rewrite break into break '__sm
143-
fn convert_break_to_switch_exit(arms: &Vec<Arm>, label: &Lifetime) -> Vec<Arm> {
144-
arms.into_iter()
143+
fn convert_break_to_switch_exit(arms: &[Arm], label: &Lifetime) -> Vec<Arm> {
144+
arms.iter()
145145
.map(|a| {
146146
let mut body = a.body.clone();
147147
ExitSwitchRewriter {

libcc2rs-macros/src/switch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn expand(input: TokenStream) -> TokenStream {
2525
}
2626
SwitchStateMachine {
2727
goto: GotoStateMachine { arms: cfg_arms },
28-
condition: condition,
28+
condition,
2929
cases,
3030
}
3131
.emit()

0 commit comments

Comments
 (0)