mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-13 17:27:50 +00:00
Run rustfmt
This commit is contained in:
parent
27cd552a8c
commit
cca096355f
@ -4,8 +4,8 @@ use crate::cursor::Cursor;
|
||||
use crate::describe::{Column, Describe};
|
||||
use crate::executor::{Execute, Executor, RefExecutor};
|
||||
use crate::mysql::protocol::{
|
||||
self, ColumnDefinition, ComQuery, ComStmtExecute, ComStmtPrepare, ComStmtPrepareOk,
|
||||
FieldFlags, Status,
|
||||
self, ColumnDefinition, ComQuery, ComStmtExecute, ComStmtPrepare, ComStmtPrepareOk, FieldFlags,
|
||||
Status,
|
||||
};
|
||||
use crate::mysql::{MySql, MySqlArguments, MySqlCursor, MySqlTypeInfo};
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use crate::io::Buf;
|
||||
use crate::mysql::protocol::{AuthPlugin};
|
||||
use crate::mysql::protocol::AuthPlugin;
|
||||
|
||||
// https://dev.mysql.com/doc/dev/mysql-server/8.0.12/page_protocol_connection_phase_packets_protocol_auth_switch_request.html
|
||||
#[derive(Debug)]
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use byteorder::LittleEndian;
|
||||
|
||||
use crate::io::Buf;
|
||||
use crate::mysql::protocol::{Status};
|
||||
use crate::mysql::protocol::Status;
|
||||
|
||||
// https://dev.mysql.com/doc/dev/mysql-server/8.0.12/page_protocol_basic_eof_packet.html
|
||||
// https://mariadb.com/kb/en/eof_packet/
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use byteorder::LittleEndian;
|
||||
|
||||
use crate::io::Buf;
|
||||
use crate::mysql::protocol::{Capabilities};
|
||||
use crate::mysql::protocol::Capabilities;
|
||||
|
||||
// https://dev.mysql.com/doc/dev/mysql-server/8.0.12/page_protocol_basic_err_packet.html
|
||||
// https://mariadb.com/kb/en/err_packet/
|
||||
|
||||
@ -2,7 +2,7 @@ use byteorder::LittleEndian;
|
||||
|
||||
use crate::io::Buf;
|
||||
use crate::mysql::io::BufExt;
|
||||
use crate::mysql::protocol::{Status};
|
||||
use crate::mysql::protocol::Status;
|
||||
|
||||
// https://dev.mysql.com/doc/dev/mysql-server/8.0.12/page_protocol_basic_ok_packet.html
|
||||
// https://mariadb.com/kb/en/ok_packet/
|
||||
|
||||
@ -3,7 +3,7 @@ use std::ops::Range;
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
use crate::io::Buf;
|
||||
use crate::mysql::protocol::{TypeId};
|
||||
use crate::mysql::protocol::TypeId;
|
||||
|
||||
pub(crate) struct Row<'c> {
|
||||
buffer: &'c [u8],
|
||||
|
||||
@ -15,7 +15,6 @@ impl Database for Postgres {
|
||||
}
|
||||
|
||||
impl<'a> HasRow<'a> for Postgres {
|
||||
// TODO: Can we drop the `type Database = _`
|
||||
type Database = Postgres;
|
||||
|
||||
type Row = super::PgRow<'a>;
|
||||
|
||||
@ -24,7 +24,7 @@ impl BackendKeyData {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{BackendKeyData, };
|
||||
use super::BackendKeyData;
|
||||
|
||||
const BACKEND_KEY_DATA: &[u8] = b"\0\0'\xc6\x89R\xc5+";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user