Skip to content

Commit 792d7bf

Browse files
committed
Just reexport types module
1 parent 4c6e36e commit 792d7bf

File tree

7 files changed

+6
-89
lines changed

7 files changed

+6
-89
lines changed

postgres/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ use types::{IsNull, Kind, Type, Oid, ToSql, FromSql, Field, OID, NAME, CHAR};
106106
#[doc(inline)]
107107
pub use postgres_shared::CancelData;
108108
#[doc(inline)]
109-
pub use postgres_shared::error;
109+
pub use postgres_shared::{error, types};
110110
#[doc(inline)]
111111
pub use error::Error;
112112

@@ -121,7 +121,6 @@ pub mod params;
121121
pub mod rows;
122122
pub mod stmt;
123123
pub mod transaction;
124-
pub mod types;
125124

126125
const TYPEINFO_QUERY: &'static str = "__typeinfo";
127126
const TYPEINFO_ENUM_QUERY: &'static str = "__typeinfo_enum";

postgres/src/types.rs

Lines changed: 0 additions & 40 deletions
This file was deleted.

postgres/tests/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extern crate fallible_iterator;
2-
#[macro_use]
32
extern crate postgres;
3+
#[macro_use]
4+
extern crate postgres_shared;
45
extern crate url;
56
#[cfg(feature = "with-openssl")]
67
extern crate openssl;

postgres/tests/types/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::fmt;
66
use std::result;
77

88
use postgres::{Connection, TlsMode};
9-
use postgres::error::Error;
109
use postgres::types::{ToSql, FromSql, WrongType, Type, IsNull, Kind, TEXT, INT4, NUMERIC};
1110

1211
#[cfg(feature = "with-bit-vec")]

tokio-postgres/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
extern crate bytes;
5858
extern crate fallible_iterator;
5959
extern crate futures_state_stream;
60+
#[cfg_attr(test, macro_use)]
6061
extern crate postgres_shared;
6162
extern crate postgres_protocol;
6263
extern crate tokio_core;
@@ -86,7 +87,7 @@ use std::sync::mpsc::{self, Sender, Receiver};
8687
use tokio_core::reactor::Handle;
8788

8889
#[doc(inline)]
89-
pub use postgres_shared::{error, params, CancelData, Notification};
90+
pub use postgres_shared::{error, params, types, CancelData, Notification};
9091
#[doc(inline)]
9192
pub use error::Error;
9293

@@ -106,8 +107,6 @@ mod sink;
106107
mod stream;
107108
pub mod tls;
108109
pub mod transaction;
109-
#[macro_use]
110-
pub mod types;
111110

112111
#[cfg(test)]
113112
mod test;

tokio-postgres/src/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use std::time::Duration;
66
use tokio_core::reactor::{Core, Interval};
77

88
use super::*;
9-
use error::{Error, INVALID_PASSWORD, INVALID_AUTHORIZATION_SPECIFICATION,
10-
QUERY_CANCELED};
9+
use error::{INVALID_PASSWORD, INVALID_AUTHORIZATION_SPECIFICATION, QUERY_CANCELED};
1110
use params::{ConnectParams, Host};
1211
use types::{ToSql, FromSql, Type, IsNull, Kind, BYTEA, TEXT, INT4, NUMERIC};
1312

tokio-postgres/src/types.rs

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)