Skip to content

Commit 511de76

Browse files
committed
Remove unnecessary line breaks
1 parent 33716f4 commit 511de76

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

src/error.rs

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,9 @@ impl fmt::Show for PostgresConnectError {
390390
write!(fmt, "Unable to open connection to server: {}", err),
391391
PgConnectDbError(ref err) => err.fmt(fmt),
392392
MissingPassword =>
393-
write!(fmt, "The server requested a password but none was \
394-
provided"),
393+
write!(fmt, "The server requested a password but none was provided"),
395394
UnsupportedAuthentication =>
396-
write!(fmt, "The server requested an unsupported \
397-
authentication method"),
395+
write!(fmt, "The server requested an unsupported authentication method"),
398396
NoSslSupport =>
399397
write!(fmt, "The server does not support SSL"),
400398
SslError(ref err) =>
@@ -573,26 +571,22 @@ impl fmt::Show for PostgresError {
573571
PgDbError(ref err) => err.fmt(fmt),
574572
PgStreamError(ref err) => err.fmt(fmt),
575573
PgStreamDesynchronized =>
576-
write!(fmt, "Communication with the server has desynchronized \
577-
due to an earlier IO error"),
574+
write!(fmt, "Communication with the server has desynchronized due to an earlier \
575+
IO error"),
578576
PgWrongConnection =>
579-
write!(fmt, "A statement was executed with a connection it was \
580-
not prepared with"),
577+
write!(fmt, "A statement was executed with a connection it was not prepared with"),
581578
PgWrongParamCount { expected, actual } =>
582-
write!(fmt, "Expected {} parameters but got {}", expected,
583-
actual),
579+
write!(fmt, "Expected {} parameters but got {}", expected, actual),
584580
PgWrongType(ref ty) => write!(fmt, "Unexpected type {}", ty),
585581
PgInvalidColumn => write!(fmt, "Invalid column"),
586582
PgWasNull => write!(fmt, "The value was NULL"),
587583
PgWrongTransaction =>
588-
write!(fmt, "An attempt was made to prepare a statement or \
589-
start a transaction on an object other than the \
590-
active transaction"),
584+
write!(fmt, "An attempt was made to prepare a statement or start a transaction on \
585+
an object other than the active transaction"),
591586
PgBadResponse =>
592587
write!(fmt, "The server returned an unexpected response"),
593588
PgBadData =>
594-
write!(fmt, "The server provided data that the client could \
595-
not parse"),
589+
write!(fmt, "The server provided data that the client could not parse"),
596590
}
597591
}
598592
}

0 commit comments

Comments
 (0)