Skip to content

Commit

Permalink
Bump sqlx to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Jul 29, 2024
1 parent 45d4750 commit 79e89e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ version = ">=0.20"
optional = true

[dependencies.sqlx]
version = "0.7"
version = "0.8"
optional = true
default-features = false
features = [ "postgres",]
Expand All @@ -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",]

Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ impl sqlx::Type<Postgres> 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::IsNull, Box<dyn std::error::Error + Send + Sync>> {
sqlx::Encode::<Postgres>::encode_by_ref(&self.to_string().as_str(), buf)
}
}
Expand Down

0 comments on commit 79e89e6

Please sign in to comment.