Skip to content

Commit 1e0ab46

Browse files
committed
Updated sqlx
1 parent 518cde0 commit 1e0ab46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ futures = { version = "~0.3" }
2525
pin-project = { version = "~1" }
2626

2727
# SQL executor. Optional because it requires a runtime and a TLS implementation.
28-
sqlx = { version = "~0.7", optional = true, features = ["time", "chrono", "uuid"] }
28+
sqlx = { version = "~0.8", optional = true, features = ["time", "chrono", "uuid"] }
2929

3030
# Logging facade
3131
log = { version = "~0.4" }

src/choice.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub struct Choice(pub String);
55

66
#[cfg(feature = "sqlx")]
77
const _: () = {
8-
use sqlx::database::{Database, HasValueRef};
8+
use sqlx::database::Database;
99
use sqlx::error::BoxDynError;
1010
use sqlx::{Decode, Type};
1111

@@ -21,7 +21,7 @@ const _: () = {
2121
}
2222
}
2323
impl<'r> Decode<'r, Postgres> for Choice {
24-
fn decode(value: <Postgres as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError> {
24+
fn decode(value: <Postgres as Database>::ValueRef<'r>) -> Result<Self, BoxDynError> {
2525
<String as Decode<'r, Postgres>>::decode(value).map(Self)
2626
}
2727
}
@@ -39,7 +39,7 @@ const _: () = {
3939
}
4040
}
4141
impl<'r> Decode<'r, MySql> for Choice {
42-
fn decode(value: <MySql as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError> {
42+
fn decode(value: <MySql as Database>::ValueRef<'r>) -> Result<Self, BoxDynError> {
4343
<String as Decode<'r, MySql>>::decode(value).map(Self)
4444
}
4545
}
@@ -57,7 +57,7 @@ const _: () = {
5757
}
5858
}
5959
impl<'r> Decode<'r, Sqlite> for Choice {
60-
fn decode(value: <Sqlite as HasValueRef<'r>>::ValueRef) -> Result<Self, BoxDynError> {
60+
fn decode(value: <Sqlite as Database>::ValueRef<'r>) -> Result<Self, BoxDynError> {
6161
<String as Decode<'r, Sqlite>>::decode(value).map(Self)
6262
}
6363
}

0 commit comments

Comments
 (0)