Skip to content

Commit c3e9918

Browse files
committed
fix: format code to pass CI checks
- Fix assert formatting in disposable email tests - Remove extra blank lines in routes module - Fix comment spacing in main.rs bind address
1 parent 7ea0992 commit c3e9918

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/handlers/validation/disposable.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ mod tests {
106106
/// Test invalid email format
107107
async fn test_invalid_email_format() {
108108
let result = is_disposable_email_mock("invalid-email").await;
109-
assert!(result.is_err(), "Should return error for invalid email format");
109+
assert!(
110+
result.is_err(),
111+
"Should return error for invalid email format"
112+
);
110113
}
111114
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async fn main() -> std::io::Result<()> {
6767
.service(SwaggerUi::new("/swagger-ui/{_:.*}").url("/api-docs/openapi.json", openapi))
6868
})
6969
.bind((
70-
"0.0.0.0", // Changed from 127.0.0.1 to allow external connections
70+
"0.0.0.0", // Changed from 127.0.0.1 to allow external connections
7171
port.parse::<u16>().expect("Failed to parse port"),
7272
))?
7373
.run()

src/routes/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ mod tests {
5959
};
6060
use serde_json::json;
6161

62-
63-
6462
/// Helper function to create test Redis cache
6563
fn create_test_redis_cache() -> RedisCache {
6664
// For tests, we'll use a mock that avoids actual Redis connections

0 commit comments

Comments
 (0)