mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
(mysql) silence warnings for unused fields (#1786)
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
This commit is contained in:
parent
dd2d51f207
commit
acb3da8a34
@ -12,11 +12,15 @@ use crate::mysql::protocol::Capabilities;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Handshake {
|
||||
#[allow(unused)]
|
||||
pub(crate) protocol_version: u8,
|
||||
pub(crate) server_version: String,
|
||||
#[allow(unused)]
|
||||
pub(crate) connection_id: u32,
|
||||
pub(crate) server_capabilities: Capabilities,
|
||||
#[allow(unused)]
|
||||
pub(crate) server_default_collation: u8,
|
||||
#[allow(unused)]
|
||||
pub(crate) status: Status,
|
||||
pub(crate) auth_plugin: Option<AuthPlugin>,
|
||||
pub(crate) auth_plugin_data: Chain<Bytes, Bytes>,
|
||||
|
||||
@ -11,6 +11,7 @@ pub(crate) struct PrepareOk {
|
||||
pub(crate) statement_id: u32,
|
||||
pub(crate) columns: u16,
|
||||
pub(crate) params: u16,
|
||||
#[allow(unused)]
|
||||
pub(crate) warnings: u16,
|
||||
}
|
||||
|
||||
|
||||
@ -101,9 +101,13 @@ pub enum ColumnType {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct ColumnDefinition {
|
||||
#[allow(unused)]
|
||||
catalog: Bytes,
|
||||
#[allow(unused)]
|
||||
schema: Bytes,
|
||||
#[allow(unused)]
|
||||
table_alias: Bytes,
|
||||
#[allow(unused)]
|
||||
table: Bytes,
|
||||
alias: Bytes,
|
||||
name: Bytes,
|
||||
@ -111,6 +115,7 @@ pub(crate) struct ColumnDefinition {
|
||||
pub(crate) max_size: u32,
|
||||
pub(crate) r#type: ColumnType,
|
||||
pub(crate) flags: ColumnFlags,
|
||||
#[allow(unused)]
|
||||
decimals: u8,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user