add :std::error::Error bound on Request::Err

This commit is contained in:
Waffle 2020-09-22 22:56:02 +03:00
parent 954c410c1b
commit 83cc634f79

View file

@ -12,7 +12,7 @@ pub trait Request: HasPayload {
*/
/// Type of error that may happen during sending the request to telegram.
type Err;
type Err: std::error::Error;
/// Type of future returned by [`send`](Request::send) method.
type Send: Future<Output = Result<Output<Self>, Self::Err>>;