From 77982cb40781f21dba2c5586099112ff3a66fc33 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Wed, 21 Aug 2024 13:00:10 -0700 Subject: [PATCH] fix(postgres): dead code `StatementId::UNNAMED` --- sqlx-postgres/src/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-postgres/src/io/mod.rs b/sqlx-postgres/src/io/mod.rs index f90db85d..df064b1e 100644 --- a/sqlx-postgres/src/io/mod.rs +++ b/sqlx-postgres/src/io/mod.rs @@ -10,7 +10,6 @@ pub(crate) use sqlx_core::io::*; #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub(crate) struct StatementId(IdInner); -#[allow(dead_code)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub(crate) struct PortalId(IdInner); @@ -18,6 +17,7 @@ pub(crate) struct PortalId(IdInner); struct IdInner(Option); impl StatementId { + #[allow(dead_code)] pub const UNNAMED: Self = Self(IdInner::UNNAMED); pub const NAMED_START: Self = Self(IdInner::NAMED_START);