Skip to content

Commit f37b9cf

Browse files
committed
Manually inline types module
Doc inlining doesn't work with globs.
1 parent 4333de8 commit f37b9cf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

postgres/src/types.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
//! Traits dealing with Postgres data types
22
33
#[doc(inline)]
4-
pub use postgres_shared::types::*;
4+
pub use postgres_shared::types::{Oid, Type, Date, Timestamp, SessionInfo, Kind, Field, Other,
5+
WasNull, WrongType, FromSql, IsNull, ToSql};
6+
7+
#[doc(hidden)]
8+
pub use postgres_shared::types::__to_sql_checked;
59

610
/// Generates a simple implementation of `ToSql::accepts` which accepts the
711
/// types passed to it.

tokio-postgres/src/types.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
//! Postgres types
22
3-
pub use postgres_shared::types::*;
3+
#[doc(inline)]
4+
pub use postgres_shared::types::{Oid, Type, Date, Timestamp, SessionInfo, Kind, Field, Other,
5+
WasNull, WrongType, FromSql, IsNull, ToSql};
6+
7+
#[doc(hidden)]
8+
pub use postgres_shared::types::__to_sql_checked;
49

510
/// Generates a simple implementation of `ToSql::accepts` which accepts the
611
/// types passed to it.

0 commit comments

Comments
 (0)