diff options
Diffstat (limited to 'src/imap/flow.rs')
-rw-r--r-- | src/imap/flow.rs | 5 |
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), } |