Skip to content

Commit 4d4cb48

Browse files
committed
fix: apply cargo fmt formatting
Fix formatting issues in auth_parameter_test.rs by consolidating multi-line assert statements to single lines as required by rustfmt.
1 parent 5e8b3e1 commit 4d4cb48

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

mcp-macros/tests/auth_parameter_test.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ fn test_auth_parameter_memory() {
5454
#[cfg(feature = "auth")]
5555
{
5656
let auth_config = memory_auth::MemoryAuthServerConfig::get_auth_config();
57-
assert!(matches!(
58-
auth_config.storage,
59-
StorageConfig::Memory
60-
));
57+
assert!(matches!(auth_config.storage, StorageConfig::Memory));
6158
assert!(auth_config.enabled);
6259
}
6360
}
@@ -86,10 +83,7 @@ fn test_auth_parameter_file() {
8683
#[cfg(feature = "auth")]
8784
{
8885
let auth_config = file_auth::FileAuthServerConfig::get_auth_config();
89-
assert!(matches!(
90-
auth_config.storage,
91-
StorageConfig::File { .. }
92-
));
86+
assert!(matches!(auth_config.storage, StorageConfig::File { .. }));
9387
assert!(auth_config.enabled);
9488
}
9589
}
@@ -104,10 +98,7 @@ fn test_auth_parameter_default() {
10498
#[cfg(feature = "auth")]
10599
{
106100
let auth_config = default_auth::DefaultAuthServerConfig::get_auth_config();
107-
assert!(matches!(
108-
auth_config.storage,
109-
StorageConfig::File { .. }
110-
));
101+
assert!(matches!(auth_config.storage, StorageConfig::File { .. }));
111102
assert!(auth_config.enabled);
112103
}
113104
}

0 commit comments

Comments
 (0)