Skip to content

Commit b8dbe6d

Browse files
committed
fix: suppress dead_code warnings
1 parent 23431e5 commit b8dbe6d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sqlx-mysql/src/protocol/response/eof.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::protocol::Capabilities;
1313
/// prior MySQL versions.
1414
#[derive(Debug)]
1515
pub struct EofPacket {
16+
#[allow(dead_code)]
1617
pub warnings: u16,
1718
pub status: Status,
1819
}

sqlx-postgres/src/message/row_description.rs

+3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ pub struct Field {
2727

2828
/// The data type size (see pg_type.typlen). Note that negative values denote
2929
/// variable-width types.
30+
#[allow(dead_code)]
3031
pub data_type_size: i16,
3132

3233
/// The type modifier (see pg_attribute.atttypmod). The meaning of the
3334
/// modifier is type-specific.
35+
#[allow(dead_code)]
3436
pub type_modifier: i32,
3537

3638
/// The format code being used for the field.
39+
#[allow(dead_code)]
3740
pub format: i16,
3841
}
3942

0 commit comments

Comments
 (0)