aboutsummaryrefslogtreecommitdiff
path: root/src/imap
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap')
-rw-r--r--src/imap/flow.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/imap/flow.rs b/src/imap/flow.rs
index 0adf1f0..eb94bb5 100644
--- a/src/imap/flow.rs
+++ b/src/imap/flow.rs
@@ -49,8 +49,9 @@ impl State {
State::Authenticated(u) | State::Selected(u, _) | State::Examined(u, _),
Transition::Examine(m),
) => Ok(State::Examined(u, m)),
- (State::Selected(u, _), Transition::Unselect) => Ok(State::Authenticated(u)),
- (State::Examined(u, _), Transition::Unselect) => Ok(State::Authenticated(u)),
+ (State::Selected(u, _) | State::Examined(u, _), Transition::Unselect) => {
+ Ok(State::Authenticated(u))
+ }
(_, Transition::Logout) => Ok(State::Logout),
_ => Err(Error::ForbiddenTransition),
}