mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-05 10:24:32 +01:00
add :std::error::Error bound on Request::Err
This commit is contained in:
parent
954c410c1b
commit
83cc634f79
1 changed files with 1 additions and 1 deletions
|
@ -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>>;
|
||||
|
|
Loading…
Reference in a new issue