@@ -82,53 +82,50 @@ use std::rt::io::net::tcp::TcpStream;
8282use std:: task;
8383use std:: util;
8484
85- use error:: hack:: PostgresSqlState ;
86- use message:: { BackendMessage ,
87- AuthenticationOk ,
88- AuthenticationKerberosV5 ,
89- AuthenticationCleartextPassword ,
90- AuthenticationMD5Password ,
91- AuthenticationSCMCredential ,
92- AuthenticationGSS ,
93- AuthenticationSSPI ,
94- BackendKeyData ,
95- BindComplete ,
96- CommandComplete ,
97- DataRow ,
98- EmptyQueryResponse ,
99- ErrorResponse ,
100- NoData ,
101- NoticeResponse ,
102- NotificationResponse ,
103- ParameterDescription ,
104- ParameterStatus ,
105- ParseComplete ,
106- PortalSuspended ,
107- ReadyForQuery ,
108- RowDescription } ;
109- use message:: { FrontendMessage ,
110- Bind ,
111- CancelRequest ,
112- Close ,
113- Describe ,
114- Execute ,
115- Parse ,
116- PasswordMessage ,
117- Query ,
118- StartupMessage ,
119- Sync ,
120- Terminate } ;
121- use message:: { RowDescriptionEntry , WriteMessage , ReadMessage } ;
122- use types:: { PostgresType , ToSql , FromSql } ;
85+ use self :: error:: hack:: PostgresSqlState ;
86+ use self :: message:: { BackendMessage ,
87+ AuthenticationOk ,
88+ AuthenticationKerberosV5 ,
89+ AuthenticationCleartextPassword ,
90+ AuthenticationMD5Password ,
91+ AuthenticationSCMCredential ,
92+ AuthenticationGSS ,
93+ AuthenticationSSPI ,
94+ BackendKeyData ,
95+ BindComplete ,
96+ CommandComplete ,
97+ DataRow ,
98+ EmptyQueryResponse ,
99+ ErrorResponse ,
100+ NoData ,
101+ NoticeResponse ,
102+ NotificationResponse ,
103+ ParameterDescription ,
104+ ParameterStatus ,
105+ ParseComplete ,
106+ PortalSuspended ,
107+ ReadyForQuery ,
108+ RowDescription } ;
109+ use self :: message:: { FrontendMessage ,
110+ Bind ,
111+ CancelRequest ,
112+ Close ,
113+ Describe ,
114+ Execute ,
115+ Parse ,
116+ PasswordMessage ,
117+ Query ,
118+ StartupMessage ,
119+ Sync ,
120+ Terminate } ;
121+ use self :: message:: { RowDescriptionEntry , WriteMessage , ReadMessage } ;
122+ use self :: types:: { PostgresType , ToSql , FromSql } ;
123123
124124pub mod error;
125125pub mod pool;
126126mod message;
127127pub mod types;
128128
129- #[ cfg( test) ]
130- mod tests;
131-
132129static DEFAULT_PORT : Port = 5432 ;
133130
134131/// Trait for types that can handle Postgres notice messages
0 commit comments