Skip to content

Commit fa5d323

Browse files
committed
style: cargo fmt
1 parent 109e39f commit fa5d323

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

src/executor/op_code.rs

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -688,18 +688,16 @@ got: {:?}",
688688
Some(Ordering::Less) => {
689689
frame.operand_stack.push(StackValue::Int(-1)).unwrap();
690690
},
691-
None => {
692-
match nan_handling {
693-
FloatCmp::Pg => frame
694-
.operand_stack
695-
.push(StackValue::Int(1))
696-
.unwrap(),
697-
FloatCmp::Pl => frame
698-
.operand_stack
699-
.push(StackValue::Int(-1))
700-
.unwrap(),
701-
}
702-
}
691+
None => match nan_handling {
692+
FloatCmp::Pg => frame
693+
.operand_stack
694+
.push(StackValue::Int(1))
695+
.unwrap(),
696+
FloatCmp::Pl => frame
697+
.operand_stack
698+
.push(StackValue::Int(-1))
699+
.unwrap(),
700+
},
703701
}
704702

705703
Update::None
@@ -1000,18 +998,16 @@ got: {:?}",
1000998
Some(Ordering::Less) => {
1001999
frame.operand_stack.push(StackValue::Int(-1)).unwrap();
10021000
},
1003-
None => {
1004-
match nan_handling {
1005-
FloatCmp::Pg => frame
1006-
.operand_stack
1007-
.push(StackValue::Int(1))
1008-
.unwrap(),
1009-
FloatCmp::Pl => frame
1010-
.operand_stack
1011-
.push(StackValue::Int(-1))
1012-
.unwrap(),
1013-
}
1014-
}
1001+
None => match nan_handling {
1002+
FloatCmp::Pg => frame
1003+
.operand_stack
1004+
.push(StackValue::Int(1))
1005+
.unwrap(),
1006+
FloatCmp::Pl => frame
1007+
.operand_stack
1008+
.push(StackValue::Int(-1))
1009+
.unwrap(),
1010+
},
10151011
}
10161012

10171013
Update::None

0 commit comments

Comments
 (0)