Skip to content

Commit 0562cdd

Browse files
its-mashclaude
andcommitted
style: fix cargo fmt formatting in resolution tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent c0e0053 commit 0562cdd

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

crates/mcpmux-gateway/src/pool/transport/resolution.rs

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ mod tests {
183183
let transport = RegistryConfig::Stdio {
184184
command: "node".to_string(),
185185
args: vec!["server.js".to_string()],
186-
env: HashMap::from([(
187-
"LOG_LEVEL".to_string(),
188-
"${input:LOG_LEVEL}".to_string(),
189-
)]),
186+
env: HashMap::from([("LOG_LEVEL".to_string(), "${input:LOG_LEVEL}".to_string())]),
190187
metadata: TransportMetadata {
191188
inputs: vec![make_input("LOG_LEVEL", Some("info"))],
192189
},
@@ -210,10 +207,7 @@ mod tests {
210207
let transport = RegistryConfig::Stdio {
211208
command: "node".to_string(),
212209
args: vec![],
213-
env: HashMap::from([(
214-
"LOG_LEVEL".to_string(),
215-
"${input:LOG_LEVEL}".to_string(),
216-
)]),
210+
env: HashMap::from([("LOG_LEVEL".to_string(), "${input:LOG_LEVEL}".to_string())]),
217211
metadata: TransportMetadata {
218212
inputs: vec![make_input("LOG_LEVEL", Some("info"))],
219213
},
@@ -239,10 +233,7 @@ mod tests {
239233
fn test_default_resolves_in_args() {
240234
let transport = RegistryConfig::Stdio {
241235
command: "node".to_string(),
242-
args: vec![
243-
"--port".to_string(),
244-
"${input:PORT}".to_string(),
245-
],
236+
args: vec!["--port".to_string(), "${input:PORT}".to_string()],
246237
env: HashMap::new(),
247238
metadata: TransportMetadata {
248239
inputs: vec![make_input("PORT", Some("8080"))],
@@ -311,10 +302,7 @@ mod tests {
311302
fn test_default_resolves_in_http_headers() {
312303
let transport = RegistryConfig::Http {
313304
url: "https://api.example.com/mcp".to_string(),
314-
headers: HashMap::from([(
315-
"X-Api-Key".to_string(),
316-
"${input:API_KEY}".to_string(),
317-
)]),
305+
headers: HashMap::from([("X-Api-Key".to_string(), "${input:API_KEY}".to_string())]),
318306
metadata: TransportMetadata {
319307
inputs: vec![make_input("API_KEY", Some("default-key"))],
320308
},
@@ -377,10 +365,7 @@ mod tests {
377365
let transport = RegistryConfig::Stdio {
378366
command: "node".to_string(),
379367
args: vec![],
380-
env: HashMap::from([(
381-
"API_KEY".to_string(),
382-
"${input:API_KEY}".to_string(),
383-
)]),
368+
env: HashMap::from([("API_KEY".to_string(), "${input:API_KEY}".to_string())]),
384369
metadata: TransportMetadata {
385370
inputs: vec![make_input("API_KEY", None)],
386371
},

0 commit comments

Comments
 (0)