From 956a92377ea46e730f9fe5dcfee8b49be65e78ec Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 13 Jul 2022 15:26:55 +0200 Subject: reformat --- src/imap/flow.rs | 5 +++-- 1 file 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), } -- cgit v1.2.3