diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-13 15:26:55 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-13 15:26:55 +0200 |
commit | 956a92377ea46e730f9fe5dcfee8b49be65e78ec (patch) | |
tree | f9ae8d5c94f0c7dadf0bf5232eaf2b6295f18969 | |
parent | c703e3e2b813cf74fc2d3d87b045dcc9fb93d190 (diff) | |
download | aerogramme-956a92377ea46e730f9fe5dcfee8b49be65e78ec.tar.gz aerogramme-956a92377ea46e730f9fe5dcfee8b49be65e78ec.zip |
reformat
-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), } |