We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec3d7b commit 51221bcCopy full SHA for 51221bc
src/lib.rs
@@ -90,10 +90,11 @@ impl PostgresConnectionManager {
90
///
91
/// See `postgres::Connection::connect` for a description of the parameter
92
/// types.
93
- pub fn new<T: IntoConnectParams>
94
- (params: T,
95
- ssl_mode: SslMode)
96
- -> Result<PostgresConnectionManager, postgres::error::ConnectError> {
+ pub fn new<T>(params: T,
+ ssl_mode: SslMode)
+ -> Result<PostgresConnectionManager, postgres::error::ConnectError>
+ where T: IntoConnectParams
97
+ {
98
let params = match params.into_connect_params() {
99
Ok(params) => params,
100
Err(err) => return Err(postgres::error::ConnectError::ConnectParams(err)),
0 commit comments