aboutsummaryrefslogtreecommitdiff
path: root/src/imap
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-13 15:26:55 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-13 15:26:55 +0200
commit956a92377ea46e730f9fe5dcfee8b49be65e78ec (patch)
treef9ae8d5c94f0c7dadf0bf5232eaf2b6295f18969 /src/imap
parentc703e3e2b813cf74fc2d3d87b045dcc9fb93d190 (diff)
downloadaerogramme-956a92377ea46e730f9fe5dcfee8b49be65e78ec.tar.gz
aerogramme-956a92377ea46e730f9fe5dcfee8b49be65e78ec.zip
reformat
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),
}