mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
fix tests for decode derive
This commit is contained in:
parent
bb933decb7
commit
24007b143a
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ fn decode() {
|
|||
struct Foo(i32);
|
||||
|
||||
#[cfg(feature = "postgres")]
|
||||
let _: Box<dyn Decode<sqlx::Postgres>> = Box::new(Foo(1));
|
||||
<Foo as Decode<sqlx::Postgres>>::decode_null().ok();
|
||||
#[cfg(feature = "mysql")]
|
||||
let _: Box<dyn Decode<sqlx::MySql>> = Box::new(Foo(1));
|
||||
<Foo as Decode<sqlx::MySql>>::decode_null().ok();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue