Skip to content

Commit 056f90a

Browse files
committed
Glob import message variants
1 parent a442b2e commit 056f90a

File tree

2 files changed

+4
-42
lines changed

2 files changed

+4
-42
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ extern crate time;
1616
use time::Timespec;
1717

1818
use postgres::{Connection, NoSsl};
19-
use postgres::types::ToSql;
2019

2120
struct Person {
2221
id: i32,

src/lib.rs

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
//! }
5252
//! ```
5353
#![doc(html_root_url="https://sfackler.github.io/doc")]
54-
#![feature(macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)]
54+
#![feature(globs, macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)]
5555
#![warn(missing_docs)]
5656

5757
extern crate openssl;
@@ -92,46 +92,9 @@ use error::{InvalidUrl,
9292
PgWrongTransaction,
9393
PgBadResponse};
9494
use io::{MaybeSslStream, InternalStream};
95-
use message::{AuthenticationCleartextPassword,
96-
AuthenticationGSS,
97-
AuthenticationKerberosV5,
98-
AuthenticationMD5Password,
99-
AuthenticationOk,
100-
AuthenticationSCMCredential,
101-
AuthenticationSSPI,
102-
BackendKeyData,
103-
BackendMessage,
104-
BindComplete,
105-
CommandComplete,
106-
CopyInResponse,
107-
DataRow,
108-
EmptyQueryResponse,
109-
ErrorResponse,
110-
NoData,
111-
NoticeResponse,
112-
NotificationResponse,
113-
ParameterDescription,
114-
ParameterStatus,
115-
ParseComplete,
116-
PortalSuspended,
117-
ReadyForQuery,
118-
RowDescription,
119-
RowDescriptionEntry};
120-
use message::{Bind,
121-
CancelRequest,
122-
Close,
123-
CopyData,
124-
CopyDone,
125-
CopyFail,
126-
Describe,
127-
Execute,
128-
FrontendMessage,
129-
Parse,
130-
PasswordMessage,
131-
Query,
132-
StartupMessage,
133-
Sync,
134-
Terminate};
95+
use message::{FrontendMessage, BackendMessage, RowDescriptionEntry};
96+
use message::FrontendMessage::*;
97+
use message::BackendMessage::*;
13598
use message::{WriteMessage, ReadMessage};
13699
#[doc(inline)]
137100
pub use types::{Oid, Type, ToSql, FromSql};

0 commit comments

Comments
 (0)