From fbee0655e3bc65f7b9ea72fc5feeac186aae82f2 Mon Sep 17 00:00:00 2001 From: "Keiji, Yoshimi" Date: Wed, 1 Jun 2022 08:56:12 +0900 Subject: [PATCH] fix `field is never read` on postgres test (#1881) --- tests/postgres/macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/postgres/macros.rs b/tests/postgres/macros.rs index 51d1f89b..53e91b1c 100644 --- a/tests/postgres/macros.rs +++ b/tests/postgres/macros.rs @@ -130,6 +130,7 @@ async fn test_query_as() -> anyhow::Result<()> { .fetch_one(&mut conn) .await?; + assert_eq!(1, account.id); assert_eq!(None, account.name); println!("{:?}", account); @@ -301,6 +302,7 @@ async fn query_by_bigdecimal() -> anyhow::Result<()> { #[sqlx_macros::test] async fn test_nullable_err() -> anyhow::Result<()> { + #[allow(dead_code)] #[derive(Debug)] struct Account { id: i32,