Skip to content

Commit 2673352

Browse files
committed
rustfmt
1 parent e544ddc commit 2673352

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
edition = "2018"

src/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::myc;
2-
use std::collections::HashMap;
32
use crate::{StatementData, Value};
3+
use std::collections::HashMap;
44

55
/// A `ParamParser` decodes query parameters included in a client's `EXECUTE` command given
66
/// type information for the expected parameters.

src/value/decode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use byteorder::{LittleEndian, ReadBytesExt};
21
use crate::myc::constants::ColumnType;
32
use crate::myc::io::ReadMysqlExt;
3+
use byteorder::{LittleEndian, ReadBytesExt};
44
use std::io;
55

66
/// MySQL value as provided when executing prepared statements.
@@ -282,11 +282,11 @@ impl<'a> Into<Duration> for Value<'a> {
282282
#[allow(unused_imports)]
283283
mod tests {
284284
use super::Value;
285-
use chrono::{self, TimeZone};
286285
use crate::myc;
287286
use crate::myc::io::WriteMysqlExt;
288-
use std::time;
289287
use crate::{Column, ColumnFlags, ColumnType};
288+
use chrono::{self, TimeZone};
289+
use std::time;
290290

291291
macro_rules! rt {
292292
($name:ident, $t:ty, $v:expr, $ct:expr) => {

src/value/encode.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use byteorder::{LittleEndian, WriteBytesExt};
21
use crate::myc;
32
use crate::myc::constants::{ColumnFlags, ColumnType};
43
use crate::myc::io::WriteMysqlExt;
5-
use std::io::{self, Write};
64
use crate::Column;
5+
use byteorder::{LittleEndian, WriteBytesExt};
6+
use std::io::{self, Write};
77

88
/// Implementors of this trait can be sent as a single resultset value to a MySQL/MariaDB client.
99
pub trait ToMysqlValue {
@@ -658,11 +658,11 @@ impl ToMysqlValue for myc::value::Value {
658658
#[allow(unused_imports)]
659659
mod tests {
660660
use super::ToMysqlValue;
661-
use chrono::{self, TimeZone};
662661
use crate::myc::value;
663662
use crate::myc::value::convert::from_value;
664-
use std::time;
665663
use crate::{Column, ColumnFlags, ColumnType};
664+
use chrono::{self, TimeZone};
665+
use std::time;
666666

667667
mod roundtrip_text {
668668
use super::*;

src/writers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use byteorder::{LittleEndian, WriteBytesExt};
21
use crate::myc::constants::StatusFlags;
32
use crate::myc::io::WriteMysqlExt;
43
use crate::packet::PacketWriter;
5-
use std::io::{self, Write};
64
use crate::{Column, ErrorKind};
5+
use byteorder::{LittleEndian, WriteBytesExt};
6+
use std::io::{self, Write};
77

88
pub(crate) fn write_eof_packet<W: Write>(
99
w: &mut PacketWriter<W>,

0 commit comments

Comments
 (0)