File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ language: rust
22rust :
33- nightly
44- beta
5- - stable
5+ - 1.8.0
66addons :
77 postgresql : 9.3
88script :
Original file line number Diff line number Diff line change 11[package ]
22name = " r2d2_postgres"
3- version = " 0.10.0 "
3+ version = " 0.10.1 "
44authors = [" Steven Fackler <sfackler@gmail.com>" ]
55license = " MIT"
66description = " Postgres support for the r2d2 connection pool"
77repository = " https://github.com/sfackler/r2d2-postgres"
8- documentation = " https://sfackler.github.io/r2d2-postgres/doc/v0.10.0 /r2d2_postgres"
8+ documentation = " https://sfackler.github.io/r2d2-postgres/doc/v0.10.1 /r2d2_postgres"
99keywords = [" postgres" , " sql" , " pool" , " database" ]
1010
1111[lib ]
@@ -18,5 +18,5 @@ name = "test"
1818path = " tests/test.rs"
1919
2020[dependencies ]
21- r2d2 = " 0.6"
21+ r2d2 = " >= 0.6, < 0.8 "
2222postgres = " 0.11"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ 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- [ Documentation] ( https://sfackler.github.io/r2d2-postgres/doc/v0.10.0 /r2d2_postgres )
6+ [ Documentation] ( https://sfackler.github.io/r2d2-postgres/doc/v0.10.1 /r2d2_postgres )
77
88[ rust-postgres] ( https://github.com/sfackler/rust-postgres ) support library for the [ r2d2] ( https://github.com/sfackler/r2d2 ) connection pool.
99
@@ -15,8 +15,7 @@ extern crate r2d2_postgres;
1515extern crate postgres;
1616
1717use std :: thread;
18- use postgres :: SslMode ;
19- use r2d2_postgres :: PostgresConnectionManager ;
18+ use r2d2_postgres :: {SslMode , PostgresConnectionManager };
2019
2120fn main () {
2221 let config = r2d2 :: Config :: default ();
Original file line number Diff line number Diff line change 11//! Postgres support for the `r2d2` connection pool.
2- #![ doc( html_root_url="https://sfackler.github.io/r2d2-postgres/doc/v0.10.0 " ) ]
2+ #![ doc( html_root_url="https://sfackler.github.io/r2d2-postgres/doc/v0.10.1 " ) ]
33#![ warn( missing_docs) ]
44extern crate r2d2;
55extern crate postgres;
66
77use std:: error;
88use std:: error:: Error as _StdError;
99use std:: fmt;
10- use postgres:: { IntoConnectParams } ;
10+ use postgres:: IntoConnectParams ;
1111use postgres:: io:: NegotiateSsl ;
1212
1313/// Like `postgres::SslMode` except that it owns its `NegotiateSsl` instance.
@@ -90,8 +90,10 @@ impl PostgresConnectionManager {
9090 ///
9191 /// See `postgres::Connection::connect` for a description of the parameter
9292 /// types.
93- pub fn new < T : IntoConnectParams > ( params : T , ssl_mode : SslMode )
94- -> Result < PostgresConnectionManager , postgres:: error:: ConnectError > {
93+ pub fn new < T : IntoConnectParams >
94+ ( params : T ,
95+ ssl_mode : SslMode )
96+ -> Result < PostgresConnectionManager , postgres:: error:: ConnectError > {
9597 let params = match params. into_connect_params ( ) {
9698 Ok ( params) => params,
9799 Err ( err) => return Err ( postgres:: error:: ConnectError :: ConnectParams ( err) ) ,
You can’t perform that action at this time.
0 commit comments