5757//! Synchronous HTTP clients should implement the following trait:
5858//! ```ignore
5959//! FnOnce(HttpRequest) -> Result<HttpResponse, RE>
60- //! where RE: std::error::Error + Send + Sync + 'static
60+ //! where RE: std::error::Error + 'static
6161//!
6262//! Async/await HTTP clients should implement the following trait:
6363//! ```ignore
6464//! FnOnce(HttpRequest) -> F
6565//! where
6666//! F: Future<Output = Result<HttpResponse, RE>>,
67- //! RE: std::error::Error + Send + Sync + 'static
67+ //! RE: std::error::Error + 'static
6868//! ```
6969//!
7070//! # Getting started: Authorization Code Grant w/ PKCE
@@ -868,7 +868,7 @@ where
868868
869869 fn prepare_request < RE > ( self ) -> Result < HttpRequest , RequestTokenError < RE , TE > >
870870 where
871- RE : Error + Send + Sync + ' static ,
871+ RE : Error + ' static ,
872872 {
873873 let mut params = vec ! [
874874 ( "grant_type" , "authorization_code" ) ,
@@ -897,7 +897,7 @@ where
897897 pub fn request < F , RE > ( self , http_client : F ) -> Result < TR , RequestTokenError < RE , TE > >
898898 where
899899 F : FnOnce ( HttpRequest ) -> Result < HttpResponse , RE > ,
900- RE : Error + Send + Sync + ' static ,
900+ RE : Error + ' static ,
901901 {
902902 http_client ( self . prepare_request ( ) ?)
903903 . map_err ( RequestTokenError :: Request )
@@ -914,7 +914,7 @@ where
914914 where
915915 C : FnOnce ( HttpRequest ) -> F ,
916916 F : Future < Output = Result < HttpResponse , RE > > ,
917- RE : Error + Send + Sync + ' static ,
917+ RE : Error + ' static ,
918918 {
919919 let http_request = self . prepare_request ( ) ?;
920920 let http_response = http_client ( http_request)
@@ -989,7 +989,7 @@ where
989989 pub fn request < F , RE > ( self , http_client : F ) -> Result < TR , RequestTokenError < RE , TE > >
990990 where
991991 F : FnOnce ( HttpRequest ) -> Result < HttpResponse , RE > ,
992- RE : Error + Send + Sync + ' static ,
992+ RE : Error + ' static ,
993993 {
994994 http_client ( self . prepare_request ( ) ?)
995995 . map_err ( RequestTokenError :: Request )
@@ -1005,7 +1005,7 @@ where
10051005 where
10061006 C : FnOnce ( HttpRequest ) -> F ,
10071007 F : Future < Output = Result < HttpResponse , RE > > ,
1008- RE : Error + Send + Sync + ' static ,
1008+ RE : Error + ' static ,
10091009 {
10101010 let http_request = self . prepare_request ( ) ?;
10111011 let http_response = http_client ( http_request)
@@ -1016,7 +1016,7 @@ where
10161016
10171017 fn prepare_request < RE > ( & self ) -> Result < HttpRequest , RequestTokenError < RE , TE > >
10181018 where
1019- RE : Error + Send + Sync + ' static ,
1019+ RE : Error + ' static ,
10201020 {
10211021 Ok ( token_request (
10221022 self . auth_type ,
@@ -1101,7 +1101,7 @@ where
11011101 pub fn request < F , RE > ( self , http_client : F ) -> Result < TR , RequestTokenError < RE , TE > >
11021102 where
11031103 F : FnOnce ( HttpRequest ) -> Result < HttpResponse , RE > ,
1104- RE : Error + Send + Sync + ' static ,
1104+ RE : Error + ' static ,
11051105 {
11061106 http_client ( self . prepare_request ( ) ?)
11071107 . map_err ( RequestTokenError :: Request )
@@ -1118,7 +1118,7 @@ where
11181118 where
11191119 C : FnOnce ( HttpRequest ) -> F ,
11201120 F : Future < Output = Result < HttpResponse , RE > > ,
1121- RE : Error + Send + Sync + ' static ,
1121+ RE : Error + ' static ,
11221122 {
11231123 let http_request = self . prepare_request ( ) ?;
11241124 let http_response = http_client ( http_request)
@@ -1129,7 +1129,7 @@ where
11291129
11301130 fn prepare_request < RE > ( & self ) -> Result < HttpRequest , RequestTokenError < RE , TE > >
11311131 where
1132- RE : Error + Send + Sync + ' static ,
1132+ RE : Error + ' static ,
11331133 {
11341134 Ok ( token_request (
11351135 self . auth_type ,
@@ -1213,7 +1213,7 @@ where
12131213 pub fn request < F , RE > ( self , http_client : F ) -> Result < TR , RequestTokenError < RE , TE > >
12141214 where
12151215 F : FnOnce ( HttpRequest ) -> Result < HttpResponse , RE > ,
1216- RE : Error + Send + Sync + ' static ,
1216+ RE : Error + ' static ,
12171217 {
12181218 http_client ( self . prepare_request ( ) ?)
12191219 . map_err ( RequestTokenError :: Request )
@@ -1230,7 +1230,7 @@ where
12301230 where
12311231 C : FnOnce ( HttpRequest ) -> F ,
12321232 F : Future < Output = Result < HttpResponse , RE > > ,
1233- RE : Error + Send + Sync + ' static ,
1233+ RE : Error + ' static ,
12341234 {
12351235 let http_request = self . prepare_request ( ) ?;
12361236 let http_response = http_client ( http_request)
@@ -1241,7 +1241,7 @@ where
12411241
12421242 fn prepare_request < RE > ( & self ) -> Result < HttpRequest , RequestTokenError < RE , TE > >
12431243 where
1244- RE : Error + Send + Sync + ' static ,
1244+ RE : Error + ' static ,
12451245 {
12461246 Ok ( token_request (
12471247 self . auth_type ,
@@ -1356,7 +1356,7 @@ fn token_response<RE, TE, TR, TT>(
13561356 http_response : HttpResponse ,
13571357) -> Result < TR , RequestTokenError < RE , TE > >
13581358where
1359- RE : Error + Send + Sync + ' static ,
1359+ RE : Error + ' static ,
13601360 TE : ErrorResponse ,
13611361 TR : TokenResponse < TT > ,
13621362 TT : TokenType ,
@@ -1627,7 +1627,7 @@ where
16271627/// to support customization by clients, such as supporting interoperability with
16281628/// non-standards-complaint OAuth2 providers
16291629///
1630- pub trait ErrorResponse : Debug + DeserializeOwned + Send + Serialize + Sync { }
1630+ pub trait ErrorResponse : Debug + DeserializeOwned + Serialize { }
16311631
16321632///
16331633/// Error types enum.
@@ -1636,7 +1636,7 @@ pub trait ErrorResponse: Debug + DeserializeOwned + Send + Serialize + Sync {}
16361636/// this error type. This value must match the error type from the relevant OAuth 2.0 standards
16371637/// (RFC 6749 or an extension).
16381638///
1639- pub trait ErrorResponseType : Debug + DeserializeOwned + Send + Serialize + Sync { }
1639+ pub trait ErrorResponseType : Debug + DeserializeOwned + Serialize { }
16401640
16411641///
16421642/// Error response returned by server after requesting an access token.
@@ -1738,7 +1738,7 @@ where
17381738#[ derive( Debug , thiserror:: Error ) ]
17391739pub enum RequestTokenError < RE , T >
17401740where
1741- RE : Error + Send + Sync + ' static ,
1741+ RE : Error + ' static ,
17421742 T : ErrorResponse + ' static ,
17431743{
17441744 ///
0 commit comments