From 35157400adb2af538b3963f86534be104998937c Mon Sep 17 00:00:00 2001 From: Lewin Bormann Date: Mon, 16 Mar 2020 19:15:14 +0100 Subject: [PATCH] chore(rustfmt): Run rustfmt --- src/authenticator.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/authenticator.rs b/src/authenticator.rs index 81022a8..009e6e7 100644 --- a/src/authenticator.rs +++ b/src/authenticator.rs @@ -56,15 +56,24 @@ where /// Return a token for the provided scopes, but don't reuse cached tokens. Instead, /// always fetch a new token from the OAuth server. - pub async fn force_refreshed_token<'a, T>(&'a self, scopes: &'a [T]) -> Result - where T: AsRef + pub async fn force_refreshed_token<'a, T>( + &'a self, + scopes: &'a [T], + ) -> Result + where + T: AsRef, { self.find_token(scopes, /* force_refresh = */ true).await } /// Return a cached token or fetch a new one from the server. - async fn find_token<'a, T>(&'a self, scopes: &'a [T], force_refresh: bool) -> Result - where T: AsRef + async fn find_token<'a, T>( + &'a self, + scopes: &'a [T], + force_refresh: bool, + ) -> Result + where + T: AsRef, { log::debug!( "access token requested for scopes: {}",