@@ -5,7 +5,7 @@ pub struct Choice(pub String);
5
5
6
6
#[ cfg( feature = "sqlx" ) ]
7
7
const _: ( ) = {
8
- use sqlx:: database:: { Database , HasValueRef } ;
8
+ use sqlx:: database:: Database ;
9
9
use sqlx:: error:: BoxDynError ;
10
10
use sqlx:: { Decode , Type } ;
11
11
@@ -21,7 +21,7 @@ const _: () = {
21
21
}
22
22
}
23
23
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 > {
25
25
<String as Decode < ' r , Postgres > >:: decode ( value) . map ( Self )
26
26
}
27
27
}
@@ -39,7 +39,7 @@ const _: () = {
39
39
}
40
40
}
41
41
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 > {
43
43
<String as Decode < ' r , MySql > >:: decode ( value) . map ( Self )
44
44
}
45
45
}
@@ -57,7 +57,7 @@ const _: () = {
57
57
}
58
58
}
59
59
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 > {
61
61
<String as Decode < ' r , Sqlite > >:: decode ( value) . map ( Self )
62
62
}
63
63
}
0 commit comments