We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8ec3d7b commit51221bcCopy 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
-pubfnnew<T:IntoConnectParams>
94
-(params:T,
95
-ssl_mode:SslMode)
96
- ->Result<PostgresConnectionManager, postgres::error::ConnectError>{
+pubfnnew<T>(params:T,
+ssl_mode:SslMode)
+ ->Result<PostgresConnectionManager, postgres::error::ConnectError>
+whereT:IntoConnectParams
97
+{
98
let params =match params.into_connect_params(){
99
Ok(params) => params,
100
Err(err) =>returnErr(postgres::error::ConnectError::ConnectParams(err)),