Skip to content

Commit 16fdd29

Browse files
committed
fix: resolve clippy warnings in tests
1 parent b5a801d commit 16fdd29

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/error_handling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ fn test_cert_expiry_calculation() {
203203
// The implementation uses 730 + 90 = 820 days (2 years + 3 months)
204204
// Allow for small time differences during test execution
205205
assert!(
206-
diff >= 819 && diff <= 821,
206+
(819..=821).contains(&diff),
207207
"Certificate should be valid for approximately 820 days, got {} days",
208208
diff
209209
);

tests/validation_tests.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,11 @@ fn test_generate_file_names_single() {
300300
pkcs12: false,
301301
};
302302

303-
let (cert, key, _) = fastcert::cert::generate_file_names(&config);
303+
let (cert, _key, _) = fastcert::cert::generate_file_names(&config);
304304
assert!(
305305
cert.to_str().unwrap().contains("example.com"),
306306
"Cert file should contain domain"
307307
);
308-
assert!(
309-
key.to_str().unwrap().contains("example.com"),
310-
"Key file should contain domain"
311-
);
312308
}
313309

314310
#[test]

0 commit comments

Comments
 (0)