Skip to content

Commit 6d38ae4

Browse files
committed
Bump to postgres 0.9
1 parent 4a78c4c commit 6d38ae4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ path = "tests/test.rs"
1919

2020
[dependencies]
2121
r2d2 = "0.5"
22-
postgres = "0.8"
22+
postgres = "0.9"

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ use postgres::{IntoConnectParams, SslMode};
1212
/// A unified enum of errors returned by postgres::Connection
1313
#[derive(Debug)]
1414
pub enum Error {
15-
/// A postgres::ConnectError
16-
Connect(postgres::ConnectError),
17-
/// An postgres::Error
18-
Other(postgres::Error),
15+
/// A postgres::error::ConnectError
16+
Connect(postgres::error::ConnectError),
17+
/// An postgres::error::Error
18+
Other(postgres::error::Error),
1919
}
2020

2121
impl fmt::Display for Error {
@@ -84,7 +84,7 @@ impl PostgresConnectionManager {
8484
/// See `postgres::Connection::connect` for a description of the parameter
8585
/// types.
8686
pub fn new<T: IntoConnectParams>(params: T, ssl_mode: SslMode)
87-
-> Result<PostgresConnectionManager, postgres::ConnectError> {
87+
-> Result<PostgresConnectionManager, postgres::error::ConnectError> {
8888
Ok(PostgresConnectionManager {
8989
params: try!(params.into_connect_params()),
9090
ssl_mode: ssl_mode,

0 commit comments

Comments
 (0)