|
1 | 1 | //! 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")] |
3 | 3 | #![warn(missing_docs)]
|
4 | 4 | externcrate r2d2;
|
5 | 5 | externcrate postgres;
|
6 | 6 |
|
7 | 7 | use std::error;
|
8 | 8 | use std::error::Erroras _StdError;
|
9 | 9 | use std::fmt;
|
10 |
| -use postgres::{IntoConnectParams}; |
| 10 | +use postgres::IntoConnectParams; |
11 | 11 | use postgres::io::NegotiateSsl;
|
12 | 12 |
|
13 | 13 | /// Like `postgres::SslMode` except that it owns its `NegotiateSsl` instance.
|
@@ -90,8 +90,10 @@ impl PostgresConnectionManager {
|
90 | 90 | ///
|
91 | 91 | /// See `postgres::Connection::connect` for a description of the parameter
|
92 | 92 | /// types.
|
93 |
| -pubfnnew<T:IntoConnectParams>(params:T,ssl_mode:SslMode) |
94 |
| - ->Result<PostgresConnectionManager, postgres::error::ConnectError>{ |
| 93 | +pubfnnew<T:IntoConnectParams> |
| 94 | +(params:T, |
| 95 | +ssl_mode:SslMode) |
| 96 | + ->Result<PostgresConnectionManager, postgres::error::ConnectError>{ |
95 | 97 | let params =match params.into_connect_params(){
|
96 | 98 | Ok(params) => params,
|
97 | 99 | Err(err) =>returnErr(postgres::error::ConnectError::ConnectParams(err)),
|
|