Skip to content

Commit 624f1e2

Browse files
committed
minor compatibility updates
1 parent 6aee5ae commit 624f1e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datetime.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,19 +456,19 @@ mod tests {
456456
}
457457

458458
#[test]
459-
#[should_fail]
459+
#[should_panic]
460460
fn test_std_bad_low_limit() {
461461
test_std_time("1901-12-13 20:45:51");
462462
}
463463

464464
#[test]
465-
#[should_fail]
465+
#[should_panic]
466466
fn test_bad_leap() {
467467
test_dt_str("2100-02-29 23:59:59");
468468
}
469469

470470
#[test]
471-
#[should_fail]
471+
#[should_panic]
472472
fn test_std_bad_hi_limit() {
473473
test_std_time("10000-01-01 00:00:00");
474474
}
@@ -492,7 +492,7 @@ mod tests {
492492

493493
#[test]
494494
fn test_all_funcs() {
495-
let mplier = if env::var("RUST_BENCH").is_some() { 10 } else { 1 };
495+
let mplier = if env::var("RUST_BENCH").is_ok() { 10 } else { 1 };
496496
let mut i = 0;
497497
while i < 3652060*mplier {
498498
test_funcs(i/mplier);

0 commit comments

Comments
 (0)