Clean up dependencies

This commit is contained in:
2021-01-04 11:15:57 +01:00
parent 0d2714e814
commit fcccf88e6f
12 changed files with 532 additions and 1781 deletions

View File

@@ -38,7 +38,7 @@ fn nba_history() {
continue;
}
let t = t.midnight().assume_utc().timestamp() as f64;
let t = t.midnight().assume_utc().unix_timestamp() as f64;
let score_1: u16 = data[3].parse().unwrap();
let score_2: u16 = data[4].parse().unwrap();
@@ -77,7 +77,7 @@ fn nba_history() {
time::date!(1996 - 01 - 01)
.midnight()
.assume_utc()
.timestamp() as f64,
.unix_timestamp() as f64,
);
assert_abs_diff_eq!(p_win, 0.9002599772490479, epsilon = f64::EPSILON);
@@ -88,7 +88,7 @@ fn nba_history() {
time::date!(2001 - 01 - 01)
.midnight()
.assume_utc()
.timestamp() as f64,
.unix_timestamp() as f64,
);
assert_abs_diff_eq!(p_win, 0.22837870685441986, epsilon = f64::EPSILON);
@@ -99,7 +99,7 @@ fn nba_history() {
time::date!(2020 - 01 - 01)
.midnight()
.assume_utc()
.timestamp() as f64,
.unix_timestamp() as f64,
);
assert_abs_diff_eq!(p_win, 0.2748029998412422, epsilon = f64::EPSILON);