diff --git a/Cargo.toml b/Cargo.toml index c042304..59a4a7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqlxmq" -version = "0.5.0" +version = "0.6.0" authors = ["Diggory Blake "] edition = "2018" license = "MIT OR Apache-2.0" @@ -15,7 +15,7 @@ members = ["sqlxmq_macros", "sqlxmq_stress"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -sqlx = { version = "0.7.1", features = ["postgres", "chrono", "uuid"] } +sqlx = { version = "0.8", features = ["postgres", "chrono", "uuid"] } tokio = { version = "1.8.3", features = ["full"] } dotenvy = "0.15.3" chrono = "0.4.19" diff --git a/sqlxmq_stress/Cargo.toml b/sqlxmq_stress/Cargo.toml index 5227741..90a8f12 100644 --- a/sqlxmq_stress/Cargo.toml +++ b/sqlxmq_stress/Cargo.toml @@ -9,8 +9,8 @@ edition = "2018" [dependencies] sqlxmq = { path = ".." } tokio = { version = "1.4.0", features = ["full"] } -dotenvy = "0.15.3" -sqlx = "0.6.0" +dotenvy = "0.15" +sqlx = "0.8" serde = "1.0.125" lazy_static = "1.4.0" futures = "0.3.13" diff --git a/src/lib.rs b/src/lib.rs index ee6bd3e..fc279e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -278,6 +278,8 @@ mod tests { use tokio::sync::{Mutex, MutexGuard}; use tokio::task; + // field 0 is never read, but its drop is important + #[allow(dead_code)] struct TestGuard(MutexGuard<'static, ()>, T); impl Deref for TestGuard { diff --git a/src/registry.rs b/src/registry.rs index a981c48..5a67923 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -87,7 +87,7 @@ impl JobRegistry { /// The default error handler implementation, which simply logs the error. pub fn default_error_handler(name: &str, error: BoxedError) { - log::error!("Job `{}` failed: {}", name, error); + log::error!("Job `{}` failed: {:?}", name, error); } #[doc(hidden)]