reformat
This commit is contained in:
parent
c703e3e2b8
commit
956a92377e
1 changed files with 3 additions and 2 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue