mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
Unify trait bounds on Authenticator::build
This commit is contained in:
@@ -167,9 +167,9 @@ where
|
|||||||
pub fn build(self) -> io::Result<impl GetToken>
|
pub fn build(self) -> io::Result<impl GetToken>
|
||||||
where
|
where
|
||||||
T::TokenGetter: 'static + GetToken,
|
T::TokenGetter: 'static + GetToken,
|
||||||
S: 'static + Send,
|
S: 'static,
|
||||||
AD: 'static,
|
AD: 'static,
|
||||||
C::Connector: 'static + Clone + Send,
|
C::Connector: 'static + hyper::client::connect::Connect,
|
||||||
{
|
{
|
||||||
let client = self.client.build_hyper_client();
|
let client = self.client.build_hyper_client();
|
||||||
let store = self.store?;
|
let store = self.store?;
|
||||||
|
|||||||
@@ -233,7 +233,6 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
|
||||||
struct ServiceAccountAccessImpl<C> {
|
struct ServiceAccountAccessImpl<C> {
|
||||||
client: hyper::Client<C, hyper::Body>,
|
client: hyper::Client<C, hyper::Body>,
|
||||||
key: ServiceAccountKey,
|
key: ServiceAccountKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user