Skip to content

Commit 0d75703

Browse files
committed
Run rustfmt
1 parent bc81e1f commit 0d75703

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

bytecode/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,10 @@ impl Instruction {
805805
}
806806

807807
pub fn unconditional_branch(&self) -> bool {
808-
matches!(self, Jump { .. } | Continue{ .. } | Break { .. } | ReturnValue | Raise { .. })
808+
matches!(
809+
self,
810+
Jump { .. } | Continue { .. } | Break { .. } | ReturnValue | Raise { .. }
811+
)
809812
}
810813

811814
pub fn stack_effect(&self, jump: bool) -> i32 {

compiler/src/ir.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ impl CodeInfo {
180180
// we don't want to worry about Continue or Break, they use unwinding to jump to
181181
// their targets and as such the stack size is taken care of in frame.rs by setting
182182
// it back to the level it was at when SetupLoop was run
183-
let jump_label = instr.label_arg().filter(
184-
|_| !matches!(instr, Instruction::Continue { .. } | Instruction::Break { .. }),
185-
);
183+
let jump_label = instr.label_arg().filter(|_| {
184+
!matches!(
185+
instr,
186+
Instruction::Continue { .. } | Instruction::Break { .. }
187+
)
188+
});
186189
if let Some(&target_block) = jump_label {
187190
let effect = instr.stack_effect(true);
188191
let target_depth = add_ui(depth, effect);

0 commit comments

Comments
 (0)