From 548d4fd21c9f6543e3dcdc9af8e7d2c57155855a Mon Sep 17 00:00:00 2001 From: sticks Date: Mon, 25 Nov 2024 19:59:10 -0600 Subject: [PATCH] use time lib instead of sqlx type for OffsetDateTime --- Cargo.lock | 1 + Cargo.toml | 1 + src/structs/quote.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 4f3473e..5f03c43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2301,6 +2301,7 @@ dependencies = [ "serde_json", "serenity", "sqlx", + "time", "tokio", "toml", "tracing", diff --git a/Cargo.toml b/Cargo.toml index 192305b..80d218a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,4 @@ chrono-tz = "0.10.0" reqwest = "0.12.9" serde_json = "1.0.133" libloading = "0.8.5" +time = "0.3.36" diff --git a/src/structs/quote.rs b/src/structs/quote.rs index 8e8bce6..3050f99 100644 --- a/src/structs/quote.rs +++ b/src/structs/quote.rs @@ -1,4 +1,4 @@ -use sqlx::types::time::OffsetDateTime; +use time::OffsetDateTime; #[derive(Debug)] pub struct Quote {