From 79e89e6cbc42a83bc0ca068e79333aed10b6ee08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 29 Jul 2024 14:39:43 +0100 Subject: [PATCH] Bump sqlx to 0.8 --- Cargo.toml | 4 ++-- src/lib.rs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 59ed73c..cbf3077 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ version = ">=0.20" optional = true [dependencies.sqlx] -version = "0.7" +version = "0.8" optional = true default-features = false features = [ "postgres",] @@ -34,7 +34,7 @@ version = "1" optional = true [dev-dependencies.sqlx] -version = "0.7" +version = "0.8" default-features = false features = [ "runtime-async-std-native-tls",] diff --git a/src/lib.rs b/src/lib.rs index c0633b7..9096bfc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -562,7 +562,10 @@ impl sqlx::Type for Version { #[cfg(feature = "sqlx")] impl sqlx::Encode<'_, Postgres> for Version { - fn encode_by_ref(&self, buf: &mut sqlx::postgres::PgArgumentBuffer) -> sqlx::encode::IsNull { + fn encode_by_ref( + &self, + buf: &mut sqlx::postgres::PgArgumentBuffer, + ) -> Result> { sqlx::Encode::::encode_by_ref(&self.to_string().as_str(), buf) } }