From de97f79d6fa0d19954c790ac7bacdfd99ded9c3a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 26 May 2015 21:42:34 -0700 Subject: [PATCH] Move Slice into types --- src/error.rs | 2 +- src/lib.rs | 2 -- src/types/mod.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/error.rs b/src/error.rs index 4c06ccd1..0c7b5a76 100644 --- a/src/error.rs +++ b/src/error.rs @@ -206,7 +206,7 @@ pub enum ConnectError { UnsupportedAuthentication, /// The Postgres server does not support SSL encryption. NoSslSupport, - /// There was an error initializing the SSL session + /// There was an error initializing the SSL session. SslError(Box), /// There was an error communicating with the server. IoError(io::Error), diff --git a/src/lib.rs b/src/lib.rs index 4381972a..9a1cd4ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,8 +80,6 @@ use error::{Error, ConnectError, SqlState, DbError}; pub use types::{ToSql, FromSql}; use io::{StreamWrapper, NegotiateSsl}; use types::{IsNull, Kind, Type, SessionInfo, Oid, Other}; -#[doc(inline)] -pub use types::Slice; use message::BackendMessage::*; use message::FrontendMessage::*; use message::{FrontendMessage, BackendMessage, RowDescriptionEntry}; diff --git a/src/types/mod.rs b/src/types/mod.rs index c9497351..d5b62626 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -1,5 +1,4 @@ //! Traits dealing with Postgres data types -pub use self::slice::Slice; use std::collections::HashMap; use std::error; @@ -7,6 +6,7 @@ use std::fmt; use std::io::prelude::*; use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian}; +pub use self::slice::Slice; use {Result, SessionInfoNew, InnerConnection, OtherNew}; use error::Error; use util;