We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4a78c4c commit6d38ae4Copy full SHA for 6d38ae4
Cargo.toml
@@ -19,4 +19,4 @@ path = "tests/test.rs"
19
20
[dependencies]
21
r2d2 ="0.5"
22
-postgres ="0.8"
+postgres ="0.9"
src/lib.rs
@@ -12,10 +12,10 @@ use postgres::{IntoConnectParams, SslMode};
12
/// A unified enum of errors returned by postgres::Connection
13
#[derive(Debug)]
14
pubenumError{
15
-/// A postgres::ConnectError
16
-Connect(postgres::ConnectError),
17
-/// An postgres::Error
18
-Other(postgres::Error),
+/// A postgres::error::ConnectError
+Connect(postgres::error::ConnectError),
+/// An postgres::error::Error
+Other(postgres::error::Error),
}
impl fmt::DisplayforError{
@@ -84,7 +84,7 @@ impl PostgresConnectionManager {
84
/// See `postgres::Connection::connect` for a description of the parameter
85
/// types.
86
pubfnnew<T:IntoConnectParams>(params:T,ssl_mode:SslMode)
87
- ->Result<PostgresConnectionManager, postgres::ConnectError>{
+ ->Result<PostgresConnectionManager, postgres::error::ConnectError>{
88
Ok(PostgresConnectionManager{
89
params: try!(params.into_connect_params()),
90
ssl_mode: ssl_mode,