Skip to content

Commit db634b5

Browse files
committed
Get rid of use *
1 parent be38e13 commit db634b5

2 files changed

Lines changed: 41 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,44 @@ use extra::md5::Md5;
1111
use extra::url::{UserInfo, Url};
1212
use std::cell::Cell;
1313
use std::hashmap::HashMap;
14-
use std::rt::io::{io_error, Decorator};
14+
use std::rt::io::{Writer, io_error, Decorator};
1515
use std::rt::io::mem::MemWriter;
1616
use std::rt::io::net;
1717
use std::rt::io::net::ip;
1818
use std::rt::io::net::ip::SocketAddr;
1919
use std::rt::io::net::tcp::TcpStream;
2020

21-
use message::*;
21+
use message::{BackendMessage,
22+
AuthenticationCleartextPassword,
23+
AuthenticationMD5Password,
24+
AuthenticationOk,
25+
BackendKeyData,
26+
BindComplete,
27+
CommandComplete,
28+
DataRow,
29+
EmptyQueryResponse,
30+
ErrorResponse,
31+
NoData,
32+
NoticeResponse,
33+
ParameterDescription,
34+
ParameterStatus,
35+
ParseComplete,
36+
PortalSuspended,
37+
ReadyForQuery,
38+
RowDescription};
39+
use message::{FrontendMessage,
40+
Bind,
41+
Close,
42+
Describe,
43+
Execute,
44+
Parse,
45+
PasswordMessage,
46+
Query,
47+
StartupMessage,
48+
Sync,
49+
Terminate};
50+
use message::{RowDescriptionEntry, WriteMessage, ReadMessage};
51+
2252
use types::{PostgresType, ToSql, FromSql};
2353

2454
mod message;
@@ -154,7 +184,7 @@ impl PostgresConnection {
154184
args.push((~"database", path));
155185
}
156186
conn.write_message(&StartupMessage {
157-
version: PROTOCOL_VERSION,
187+
version: message::PROTOCOL_VERSION,
158188
parameters: args.as_slice()
159189
});
160190

src/test.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ use extra::uuid::Uuid;
88
use std::f32;
99
use std::f64;
1010

11-
use postgres::*;
11+
use postgres::{DbError,
12+
DnsError,
13+
MissingPassword,
14+
Position,
15+
PostgresConnection,
16+
PostgresDbError,
17+
PostgresStatement,
18+
ResultDescription};
1219
use postgres::types::{ToSql, FromSql, PgInt4, PgVarchar};
1320

1421
#[test]

0 commit comments

Comments
 (0)