Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d38ae4

Browse files
committed
Bump to postgres 0.9
1 parent4a78c4c commit6d38ae4

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
pubenumError{
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::DisplayforError{
@@ -84,7 +84,7 @@ impl PostgresConnectionManager {
8484
/// See `postgres::Connection::connect` for a description of the parameter
8585
/// types.
8686
pubfnnew<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)

[8]ページ先頭

©2009-2025 Movatter.jp