File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ path = "tests/test.rs"
1414
1515[dependencies .openssl ]
1616git = " https://github.com/sfackler/rust-openssl"
17- rev = " 39343df472b4b0c99055d371f42beceeef527bd6 "
17+ rev = " 182ec4a6e77a53381e8b5e161f5d9c8fb3d965ff "
1818
1919[dependencies .phf ]
2020git = " https://github.com/sfackler/rust-phf"
21- rev = " b2220d9a428049fb9c52b51c16d8f6b15cd02487 "
21+ rev = " 9fd8d24f59b1af976526fc43baf6635a3714c71e "
2222
2323[dependencies .phf_mac ]
2424git = " https://github.com/sfackler/rust-phf"
25- rev = " b2220d9a428049fb9c52b51c16d8f6b15cd02487 "
25+ rev = " 9fd8d24f59b1af976526fc43baf6635a3714c71e "
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ extern crate time;
1515
1616use time :: Timespec ;
1717
18- use postgres :: { PostgresConnection , NoSsl } ;
18+ use postgres :: NoSsl ;
1919use postgres :: types :: ToSql ;
2020
2121struct Person {
@@ -26,8 +26,8 @@ struct Person {
2626}
2727
2828fn main () {
29- let conn = PostgresConnection :: connect (" postgres://postgres@localhost" ,
30- & NoSsl ). unwrap ();
29+ let conn = postgres :: Connection :: connect (" postgres://postgres@localhost" ,
30+ & NoSsl ). unwrap ();
3131
3232 conn . execute (" CREATE TABLE person (
3333 id SERIAL PRIMARY KEY,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::io::net::tcp::TcpStream;
44use std:: io:: net:: unix:: UnixStream ;
55use std:: io:: { Stream , IoResult } ;
66
7- use { PostgresConnectParams ,
7+ use { ConnectParams ,
88 SslMode ,
99 NoSsl ,
1010 PreferSsl ,
@@ -81,8 +81,7 @@ impl Writer for InternalStream {
8181 }
8282}
8383
84- fn open_socket ( params : & PostgresConnectParams )
85- -> Result < InternalStream , PostgresConnectError > {
84+ fn open_socket ( params : & ConnectParams ) -> Result < InternalStream , PostgresConnectError > {
8685 let port = params. port . unwrap_or ( DEFAULT_PORT ) ;
8786 let socket = match params. target {
8887 TargetTcp ( ref host) =>
@@ -96,7 +95,7 @@ fn open_socket(params: &PostgresConnectParams)
9695 socket. map_err ( |e| SocketError ( e) )
9796}
9897
99- pub fn initialize_stream ( params : & PostgresConnectParams , ssl : & SslMode )
98+ pub fn initialize_stream ( params : & ConnectParams , ssl : & SslMode )
10099 -> Result < MaybeSslStream < InternalStream > , PostgresConnectError > {
101100 let mut socket = try!( open_socket ( params) ) ;
102101
You can’t perform that action at this time.
0 commit comments