Skip to content

Commit 37f394a

Browse files
committed
fix: address formatting errors
1 parent e32a79a commit 37f394a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/rmcp/src/transport/auth.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,10 @@ impl AuthorizationManager {
204204
// according to the specification, the metadata should be located at "/.well-known/oauth-authorization-server"
205205
let mut discovery_url = self.base_url.clone();
206206
let path = discovery_url.path();
207-
let path_suffix = if path == "/" {
208-
""
209-
} else {
210-
path
211-
};
212-
discovery_url.set_path(&format!("/.well-known/oauth-authorization-server{path_suffix}"));
207+
let path_suffix = if path == "/" { "" } else { path };
208+
discovery_url.set_path(&format!(
209+
"/.well-known/oauth-authorization-server{path_suffix}"
210+
));
213211
debug!("discovery url: {:?}", discovery_url);
214212
let response = self
215213
.http_client

0 commit comments

Comments
 (0)