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 parent3e0411b commit0bd00d9Copy full SHA for 0bd00d9
src/lib.rs
@@ -7,7 +7,7 @@ extern crate postgres;
7
use std::error;
8
use std::error::Erroras _StdError;
9
use std::fmt;
10
-use postgres::{IntoConnectParams};
+use postgres::IntoConnectParams;
11
use postgres::io::NegotiateSsl;
12
13
/// Like `postgres::SslMode` except that it owns its `NegotiateSsl` instance.
@@ -90,8 +90,10 @@ impl PostgresConnectionManager {
90
///
91
/// See `postgres::Connection::connect` for a description of the parameter
92
/// types.
93
-pubfnnew<T:IntoConnectParams>(params:T,ssl_mode:SslMode)
94
- ->Result<PostgresConnectionManager, postgres::error::ConnectError>{
+pubfnnew<T:IntoConnectParams>
+(params:T,
95
+ssl_mode:SslMode)
96
+ ->Result<PostgresConnectionManager, postgres::error::ConnectError>{
97
let params =match params.into_connect_params(){
98
Ok(params) => params,
99
Err(err) =>returnErr(postgres::error::ConnectError::ConnectParams(err)),