diff --git a/Cargo.toml b/Cargo.toml index f25dd9e..d8c5f48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ actix-web = "4.5.1" actix-rt = "2.9" chrono = { version = "0.4.37", features = ["serde"] } env_logger = "0.11" -log = "0.4.11" +log = "0.4.21" rusqlite = { version = "0.31", features = ["bundled"] } serde = "1.0.197" serde_derive = "1.0.197" diff --git a/src/app_context.rs b/src/app_context.rs index a985f80..417d2b6 100644 --- a/src/app_context.rs +++ b/src/app_context.rs @@ -196,7 +196,6 @@ impl Database { mod tests_database { use super::*; use crate::broadsign::real_time_pop_request::{RealTimePopEntry, RealTimePopRequest}; - use rusqlite::config::DbConfig::SQLITE_DBCONFIG_LEGACY_ALTER_TABLE; use serde_json::json; fn ensure_user(db: &Database) { @@ -243,7 +242,7 @@ mod tests_database { schedule_id: 61001, impressions: 675, interactions: 0, - end_time: chrono::NaiveDate::from_ymd(2017, 11, 23).and_hms_milli(13, 27, 12, 500), + end_time: chrono::NaiveDate::from_ymd_opt(2017, 11, 23).unwrap().and_hms_milli_opt(13, 27, 12, 500).unwrap(), duration_ms: 12996, service_name: "bmb".to_owned(), service_value: "701".to_owned(),