Skip to content

Commit

Permalink
refactor: remove some unneccessary clones
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Nov 11, 2024
1 parent d2f2319 commit 406c8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/identity_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ where
pub async fn get_token(&self, request: TokenRequest) -> Result<impl IntoResponse, ApiError> {
let token_request = TokenRequestBuilderParams {
target: request.target.clone(),
assertion: self.create_assertion(request.target.clone()),
assertion: self.create_assertion(request.target),
client_id: Some(self.client_id.clone()),
user_token: None,
};
Expand All @@ -331,7 +331,7 @@ where
) -> Result<impl IntoResponse, ApiError> {
let token_request = TokenRequestBuilderParams {
target: request.target.clone(),
assertion: self.create_assertion(request.target.clone()),
assertion: self.create_assertion(request.target),
client_id: Some(self.client_id.clone()),
user_token: Some(request.user_token),
};
Expand Down

0 comments on commit 406c8d7

Please sign in to comment.