We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cffd665 commit 7c41228Copy full SHA for 7c41228
src/state_machine.rs
@@ -23,9 +23,8 @@ impl IntentState {
23
event: TransitionEvent,
24
) -> Result<IntentState, &'static str> {
25
match (self, event) {
26
- (
27
- IntentState::Committed
28
- | IntentState::Completed
+ (
+ IntentState::Completed
29
| IntentState::Refunded
30
| IntentState::Invalid,
31
_
@@ -59,11 +58,3 @@ mod tests {
59
58
assert_eq!(new_state, IntentState::Committed);
60
}
61
62
-#[test]
63
-fn committed_is_terminal() {
64
- let state = IntentState::Committed;
65
-
66
- let result = state.transition(TransitionEvent::Timeout);
67
68
- assert!(result.is_err());
69
-}
0 commit comments