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

Commit5f5091f

Browse files
committed
Merge branch 'release-v0.9.3' into release
2 parents9838f14 +1f3e6ac commit5f5091f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎Cargo.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name ="r2d2_postgres"
3-
version ="0.9.2"
3+
version ="0.9.3"
44
authors = ["Steven Fackler <sfackler@gmail.com>"]
55
license ="MIT"
66
description ="Postgres support for the r2d2 connection pool"
77
repository ="https://github.com/sfackler/r2d2-postgres"
8-
documentation ="https://sfackler.github.io/r2d2-postgres/doc/v0.9.2/r2d2_postgres"
8+
documentation ="https://sfackler.github.io/r2d2-postgres/doc/v0.9.3/r2d2_postgres"
99
keywords = ["postgres","sql","pool","database"]
1010

1111
[lib]
@@ -19,4 +19,4 @@ path = "tests/test.rs"
1919

2020
[dependencies]
2121
r2d2 ="0.6"
22-
postgres ="0.9"
22+
postgres ="0.10"

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ r2d2-postgres
33

44
[![Build Status](https://travis-ci.org/sfackler/r2d2-postgres.svg?branch=master)](https://travis-ci.org/sfackler/r2d2-postgres)
55

6-
[rust-postgres](https://github.com/sfackler/rust-postgres) support library for the[r2d2](https://github.com/sfackler/r2d2) connection pool.
6+
[Documentation](https://sfackler.github.io/r2d2-postgres/doc/v0.9.3/r2d2_postgres)
77

8-
Documentation is available athttps://sfackler.github.io/r2d2-postgres/doc/v0.9.2/r2d2_postgres
8+
[rust-postgres](https://github.com/sfackler/rust-postgres) support library for the[r2d2](https://github.com/sfackler/r2d2) connection pool.
99

1010
#Example
1111

‎src/lib.rs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Postgres support for the `r2d2` connection pool.
2-
#![doc(html_root_url="https://sfackler.github.io/r2d2-postgres/doc/v0.9.2")]
2+
#![doc(html_root_url="https://sfackler.github.io/r2d2-postgres/doc/v0.9.3")]
33
#![warn(missing_docs)]
44
externcrate r2d2;
55
externcrate postgres;
@@ -84,8 +84,13 @@ impl PostgresConnectionManager {
8484
/// types.
8585
pubfnnew<T:IntoConnectParams>(params:T,ssl_mode:SslMode)
8686
->Result<PostgresConnectionManager, postgres::error::ConnectError>{
87+
let params =match params.into_connect_params(){
88+
Ok(params) => params,
89+
Err(err) =>returnErr(postgres::error::ConnectError::BadConnectParams(err)),
90+
};
91+
8792
Ok(PostgresConnectionManager{
88-
params:try!(params.into_connect_params()),
93+
params: params,
8994
ssl_mode: ssl_mode,
9095
})
9196
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp