fix: suppress dead_code warnings

This commit is contained in:
Austin Bonander 2024-06-13 12:54:49 -07:00
parent 3418455482
commit 05a10de4d8
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ use crate::protocol::Capabilities;
/// prior MySQL versions.
#[derive(Debug)]
pub struct EofPacket {
#[allow(dead_code)]
pub warnings: u16,
pub status: Status,
}

View File

@ -27,13 +27,16 @@ pub struct Field {
/// The data type size (see pg_type.typlen). Note that negative values denote
/// variable-width types.
#[allow(dead_code)]
pub data_type_size: i16,
/// The type modifier (see pg_attribute.atttypmod). The meaning of the
/// modifier is type-specific.
#[allow(dead_code)]
pub type_modifier: i32,
/// The format code being used for the field.
#[allow(dead_code)]
pub format: i16,
}