From f37b9cfaf7df894a81033fb6f00f5fdf05da7ca4 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 4 Feb 2017 15:11:29 -0800 Subject: [PATCH] Manually inline types module Doc inlining doesn't work with globs. --- postgres/src/types.rs | 6 +++++- tokio-postgres/src/types.rs | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/postgres/src/types.rs b/postgres/src/types.rs index f5ca5873..5a106dec 100644 --- a/postgres/src/types.rs +++ b/postgres/src/types.rs @@ -1,7 +1,11 @@ //! Traits dealing with Postgres data types #[doc(inline)] -pub use postgres_shared::types::*; +pub use postgres_shared::types::{Oid, Type, Date, Timestamp, SessionInfo, Kind, Field, Other, + WasNull, WrongType, FromSql, IsNull, ToSql}; + +#[doc(hidden)] +pub use postgres_shared::types::__to_sql_checked; /// Generates a simple implementation of `ToSql::accepts` which accepts the /// types passed to it. diff --git a/tokio-postgres/src/types.rs b/tokio-postgres/src/types.rs index 4f6b6582..b94ebc1a 100644 --- a/tokio-postgres/src/types.rs +++ b/tokio-postgres/src/types.rs @@ -1,6 +1,11 @@ //! Postgres types -pub use postgres_shared::types::*; +#[doc(inline)] +pub use postgres_shared::types::{Oid, Type, Date, Timestamp, SessionInfo, Kind, Field, Other, + WasNull, WrongType, FromSql, IsNull, ToSql}; + +#[doc(hidden)] +pub use postgres_shared::types::__to_sql_checked; /// Generates a simple implementation of `ToSql::accepts` which accepts the /// types passed to it.