Skip to content

Commit cd15999

Browse files
committed
clippy
1 parent 4d10eaa commit cd15999

File tree

1 file changed

+1
-1
lines changed
  • rust/user-info-fetcher/src/backend

1 file changed

+1
-1
lines changed

rust/user-info-fetcher/src/backend/entra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl EntraBackend {
171171
uses_tls: bool,
172172
) -> Result<Self, Error> {
173173
let schema = if uses_tls { "https" } else { "http" };
174-
let port = port.unwrap_or_else(|| if uses_tls { 443 } else { 80 });
174+
let port = port.unwrap_or(if uses_tls { 443 } else { 80 });
175175

176176
let token_endpoint =
177177
format!("{schema}://{token_endpoint}:{port}/{tenant_id}/oauth2/v2.0/token");

0 commit comments

Comments
 (0)