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:
Glenn Griffin
2019-11-08 13:40:34 -08:00
parent 696577aa01
commit 9542e3a9f1
7 changed files with 73 additions and 58 deletions

View File

@@ -133,7 +133,7 @@ pub trait FlowDelegate: Clone + Send + Sync {
}
/// Configure a custom redirect uri if needed.
fn redirect_uri(&self) -> Option<String> {
fn redirect_uri(&self) -> Option<&str> {
None
}
/// The server has returned a `user_code` which must be shown to the user,