set default error type

This commit is contained in:
Kirill Mironov 2020-08-01 11:58:24 +03:00
parent ffb5f29362
commit 245355ea3e

View file

@ -58,4 +58,4 @@ impl<D, E> SubtransitionOutputType for TransitionOut<D, E> {
pub type TransitionIn = UpdateWithCx<Message>; pub type TransitionIn = UpdateWithCx<Message>;
/// A type returned from a FSM (sub)transition function. /// A type returned from a FSM (sub)transition function.
pub type TransitionOut<D, E> = Result<DialogueStage<D>, E>; pub type TransitionOut<D, E = crate::RequestError> = Result<DialogueStage<D>, E>;