Skip to content

Commit d2ef1ee

Browse files
committed
Rustfmt
1 parent 19156b2 commit d2ef1ee

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,12 @@ pub fn cancel_query<T>(params: T,
203203

204204
fn bad_response() -> io::Error {
205205
io::Error::new(io::ErrorKind::InvalidInput,
206-
"the server returned an unexpected response")
206+
"the server returned an unexpected response")
207207
}
208208

209209
fn desynchronized() -> io::Error {
210210
io::Error::new(io::ErrorKind::Other,
211-
"communication with the server has desynchronized due to an earlier IO \
212-
error")
211+
"communication with the server has desynchronized due to an earlier IO error")
213212
}
214213

215214
/// Specifies the TLS support requested for a new connection.
@@ -414,7 +413,7 @@ impl InnerConnection {
414413
backend::Message::AuthenticationGSS |
415414
backend::Message::AuthenticationSSPI => {
416415
return Err(ConnectError::Io(io::Error::new(io::ErrorKind::Other,
417-
"unsupported authentication")))
416+
"unsupported authentication")))
418417
}
419418
backend::Message::ErrorResponse { fields } => return DbError::new_connect(fields),
420419
_ => return Err(ConnectError::Io(bad_response())),
@@ -507,8 +506,8 @@ impl InnerConnection {
507506
}
508507
}
509508
return Err(Error::Io(io::Error::new(io::ErrorKind::InvalidInput,
510-
"COPY queries cannot be directly \
511-
executed")));
509+
"COPY queries cannot be directly \
510+
executed")));
512511
}
513512
_ => {
514513
self.desynchronized = true;
@@ -759,7 +758,7 @@ impl InnerConnection {
759758
for row in rows {
760759
let raw = row.get(0).and_then(|r| r.as_ref().map(|r| &**r));
761760
variants.push(try!(String::from_sql_nullable(&Type::Name, raw, &ctx)
762-
.map_err(Error::Conversion)));
761+
.map_err(Error::Conversion)));
763762
}
764763

765764
Ok(variants)

0 commit comments

Comments
 (0)