Skip to content

Commit

Permalink
fix: suppress dead_code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Jun 13, 2024
1 parent 3418455 commit 05a10de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqlx-mysql/src/protocol/response/eof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
3 changes: 3 additions & 0 deletions sqlx-postgres/src/message/row_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 05a10de

Please sign in to comment.