Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17fcbe3

Browse files
committed
Remove old feature check module.
1 parent 0516cb9 commit 17fcbe3

File tree

2 files changed

+8
-44
lines changed

2 files changed

+8
-44
lines changed

postgres/src/feature_check.rs

Lines changed: 0 additions & 29 deletions
This file was deleted.

postgres/src/lib.rs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ pub use error::Error;
114114
#[macro_use]
115115
mod macros;
116116

117-
mod feature_check;
118117
mod priv_io;
119118
pub mod tls;
120119
pub mod notification;
@@ -573,13 +572,11 @@ impl InnerConnection {
573572
break;
574573
}
575574
}
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());
583580
}
584581
_ => {
585582
self.desynchronized = true;
@@ -607,8 +604,7 @@ impl InnerConnection {
607604
);
608605
debug!(
609606
"executing statement {} with parameters: {:?}",
610-
stmt_name,
611-
params
607+
stmt_name, params
612608
);
613609

614610
{
@@ -838,8 +834,7 @@ impl InnerConnection {
838834

839835
let mut variants = vec![];
840836
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)?);
843838
}
844839

845840
Ok(variants)
@@ -909,9 +904,7 @@ impl InnerConnection {
909904
backend::Message::ReadyForQuery(_) => break,
910905
backend::Message::DataRow(body) => {
911906
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()))
915908
.collect()?;
916909
result.push(row);
917910
}

0 commit comments

Comments
 (0)