Fixes lifetime for TokenProvider

This commit is contained in:
2025-04-05 19:51:07 +01:00
parent 51d6a27017
commit 8ff379d040

View File

@@ -7,7 +7,7 @@ pub trait TokenProvider {
-> impl std::future::Future<Output = Result<String>> + Send; -> impl std::future::Future<Output = Result<String>> + Send;
} }
impl TokenProvider for Arc<dyn gcp_auth::TokenProvider> { impl TokenProvider for Arc<dyn gcp_auth::TokenProvider + '_> {
async fn get_token(&self, scope: &[&str]) -> Result<String> { async fn get_token(&self, scope: &[&str]) -> Result<String> {
let token = self.token(scope).await; let token = self.token(scope).await;
match token { match token {