mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-22 01:58:05 +01:00
Remove instances of cloning ApplicationSecret
ApplicationSecret is not a small struct. This removes the instances where it's cloned in favor of passing a shared reference.
This commit is contained in:
@@ -216,7 +216,7 @@ where
|
||||
let store = store.clone();
|
||||
let rr = RefreshFlow::refresh_token(
|
||||
client.clone(),
|
||||
appsecret.clone(),
|
||||
appsecret,
|
||||
refresh_token.unwrap(),
|
||||
)
|
||||
.await?;
|
||||
@@ -291,7 +291,7 @@ impl<
|
||||
self.inner.api_key()
|
||||
}
|
||||
/// Returns the application secret of the inner flow.
|
||||
fn application_secret(&self) -> ApplicationSecret {
|
||||
fn application_secret(&self) -> &ApplicationSecret {
|
||||
self.inner.application_secret()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user