Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed May 20, 2024
1 parent 0856bb0 commit 2982cd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ impl PrimaryRefreshToken {
}

fn clone_session_key(&self, new_prt: &mut PrimaryRefreshToken) {
new_prt.session_key_jwe = self.session_key_jwe.clone();
new_prt.session_key_jwe.clone_from(&self.session_key_jwe);
}
}

Expand Down Expand Up @@ -1508,7 +1508,7 @@ impl PublicClientApplication {
("amr_values", "ngcmfa"),
(
"resource",
&resource.unwrap_or("00000002-0000-0000-c000-000000000000"),
(resource.unwrap_or("00000002-0000-0000-c000-000000000000")),
),
];
let url = Url::parse_with_params(
Expand Down Expand Up @@ -2699,7 +2699,7 @@ impl BrokerClientApplication {
let params = [
("windows_api_version", "2.0"),
("grant_type", "urn:ietf:params:oauth:grant-type:jwt-bearer"),
("request", &signed_jwt),
("request", signed_jwt),
("client_info", "1"),
("tgt", "true"),
];
Expand Down Expand Up @@ -3302,7 +3302,7 @@ impl BrokerClientApplication {
("scope", &scope),
(
"resource",
&resource.unwrap_or("00000002-0000-0000-c000-000000000000"),
(resource.unwrap_or("00000002-0000-0000-c000-000000000000")),
),
];
let payload = params
Expand Down

0 comments on commit 2982cd2

Please sign in to comment.