Skip to content

Commit f79e98e

Browse files
committed
Rustfmt
1 parent 4f37625 commit f79e98e

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,8 +1337,8 @@ fn read_rows(conn: &mut InnerConnection, buf: &mut VecDeque<Vec<Option<Vec<u8>>>
13371337
}
13381338
}
13391339
return Err(Error::Io(std_io::Error::new(std_io::ErrorKind::InvalidInput,
1340-
"COPY queries cannot be directly \
1341-
executed")));
1340+
"COPY queries cannot be directly \
1341+
executed")));
13421342
}
13431343
_ => {
13441344
conn.desynchronized = true;

src/rows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl<'a> Row<'a> {
217217
{
218218
let idx = match idx.idx(self.stmt) {
219219
Some(idx) => idx,
220-
None => return None
220+
None => return None,
221221
};
222222

223223
let ty = self.stmt.columns()[idx].type_();

src/stmt.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ impl<'conn> Statement<'conn> {
322322
match try!(conn.read_message()) {
323323
ReadyForQuery { .. } => {
324324
return Err(Error::Io(io::Error::new(io::ErrorKind::InvalidInput,
325-
"called `copy_in` on a \
326-
non-`COPY FROM STDIN` \
327-
statement")));
325+
"called `copy_in` on a \
326+
non-`COPY FROM STDIN` \
327+
statement")));
328328
}
329329
_ => {}
330330
}
@@ -422,8 +422,8 @@ impl<'conn> Statement<'conn> {
422422
}
423423
try!(conn.wait_for_ready());
424424
return Err(Error::Io(io::Error::new(io::ErrorKind::InvalidInput,
425-
"called `copy_out` on a non-`COPY TO \
426-
STDOUT` statement")));
425+
"called `copy_out` on a non-`COPY TO \
426+
STDOUT` statement")));
427427
}
428428
ErrorResponse { fields } => {
429429
try!(conn.wait_for_ready());
@@ -434,9 +434,8 @@ impl<'conn> Statement<'conn> {
434434
match try!(conn.read_message()) {
435435
ReadyForQuery { .. } => {
436436
return Err(Error::Io(io::Error::new(io::ErrorKind::InvalidInput,
437-
"called `copy_out` on a \
438-
non-`COPY TO STDOUT` \
439-
statement")));
437+
"called `copy_out` on a \
438+
non-`COPY TO STDOUT` statement")));
440439
}
441440
_ => {}
442441
}

0 commit comments

Comments
 (0)