From 83cc634f794402b472d0c69c22199f80f7a089fc Mon Sep 17 00:00:00 2001 From: Waffle Date: Tue, 22 Sep 2020 22:56:02 +0300 Subject: [PATCH] add :std::error::Error bound on Request::Err --- src/requests/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/request.rs b/src/requests/request.rs index 3ec6ba63..b29a6c00 100644 --- a/src/requests/request.rs +++ b/src/requests/request.rs @@ -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, Self::Err>>;