Skip to content

Commit 51221bc

Browse files
committed
Cleanup
1 parent 8ec3d7b commit 51221bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ impl PostgresConnectionManager {
9090
///
9191
/// See `postgres::Connection::connect` for a description of the parameter
9292
/// types.
93-
pub fn new<T: IntoConnectParams>
94-
(params: T,
95-
ssl_mode: SslMode)
96-
-> Result<PostgresConnectionManager, postgres::error::ConnectError> {
93+
pub fn new<T>(params: T,
94+
ssl_mode: SslMode)
95+
-> Result<PostgresConnectionManager, postgres::error::ConnectError>
96+
where T: IntoConnectParams
97+
{
9798
let params = match params.into_connect_params() {
9899
Ok(params) => params,
99100
Err(err) => return Err(postgres::error::ConnectError::ConnectParams(err)),

0 commit comments

Comments
 (0)