@@ -114,7 +114,6 @@ pub use error::Error;
114
114
#[ macro_use]
115
115
mod macros;
116
116
117
- mod feature_check;
118
117
mod priv_io;
119
118
pub mod tls;
120
119
pub mod notification;
@@ -573,13 +572,11 @@ impl InnerConnection {
573
572
break ;
574
573
}
575
574
}
576
- return Err (
577
- io:: Error :: new (
578
- io:: ErrorKind :: InvalidInput ,
579
- "COPY queries cannot be directly \
580
- executed",
581
- ) . into ( ) ,
582
- ) ;
575
+ return Err ( io:: Error :: new (
576
+ io:: ErrorKind :: InvalidInput ,
577
+ "COPY queries cannot be directly \
578
+ executed",
579
+ ) . into ( ) ) ;
583
580
}
584
581
_ => {
585
582
self . desynchronized = true ;
@@ -607,8 +604,7 @@ impl InnerConnection {
607
604
) ;
608
605
debug ! (
609
606
"executing statement {} with parameters: {:?}" ,
610
- stmt_name,
611
- params
607
+ stmt_name, params
612
608
) ;
613
609
614
610
{
@@ -838,8 +834,7 @@ impl InnerConnection {
838
834
839
835
let mut variants = vec ! [ ] ;
840
836
for row in rows {
841
- variants. push ( String :: from_sql_nullable ( & NAME , row. get ( 0 ) )
842
- . map_err ( error:: conversion) ?) ;
837
+ variants. push ( String :: from_sql_nullable ( & NAME , row. get ( 0 ) ) . map_err ( error:: conversion) ?) ;
843
838
}
844
839
845
840
Ok ( variants)
@@ -909,9 +904,7 @@ impl InnerConnection {
909
904
backend:: Message :: ReadyForQuery ( _) => break ,
910
905
backend:: Message :: DataRow ( body) => {
911
906
let row = body. ranges ( )
912
- . map ( |r| {
913
- r. map ( |r| String :: from_utf8_lossy ( & body. buffer ( ) [ r] ) . into_owned ( ) )
914
- } )
907
+ . map ( |r| r. map ( |r| String :: from_utf8_lossy ( & body. buffer ( ) [ r] ) . into_owned ( ) ) )
915
908
. collect ( ) ?;
916
909
result. push ( row) ;
917
910
}
0 commit comments