Skip to content

Commit 417fb09

Browse files
committed
Un-reexport some type-related types
1 parent 3e25dc4 commit 417fb09

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ use std::path::PathBuf;
7777

7878
pub use error::{Error, ConnectError, SqlState, DbError, ErrorPosition};
7979
#[doc(inline)]
80-
pub use types::{Oid, Type, Other, Kind, ToSql, FromSql, SessionInfo};
80+
pub use types::{ToSql, FromSql};
8181
use io::{StreamWrapper, NegotiateSsl};
82-
use types::IsNull;
82+
use types::{IsNull, Kind, Type, SessionInfo, Oid, Other};
8383
#[doc(inline)]
8484
pub use types::Slice;
8585
use message::BackendMessage::*;

src/types/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::io::prelude::*;
22
use byteorder::{WriteBytesExt, BigEndian};
33

4-
use {Type, ToSql, Result, Error, Kind};
5-
use types::{IsNull, SessionInfo};
4+
use {Result, Error};
5+
use types::{Type, ToSql, Kind, IsNull, SessionInfo};
66

77
/// An adapter type mapping slices to Postgres arrays.
88
///

tests/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ use postgres::{HandleNotice,
1313
Connection,
1414
GenericConnection,
1515
SslMode,
16-
Type,
17-
Kind,
1816
Error,
1917
ConnectError,
2018
DbError,
2119
IntoConnectParams,
2220
IsolationLevel};
21+
use postgres::types::{Type, Kind};
2322
use postgres::SqlState::{SyntaxError,
2423
QueryCanceled,
2524
UndefinedTable,

0 commit comments

Comments
 (0)