Make more modules private and opt to expose some types/traits directly

This commit is contained in:
Ryan Leckey 2019-09-02 17:25:13 -07:00
parent abb7d12087
commit d4096cf2a4
2 changed files with 9 additions and 6 deletions

View File

@ -44,7 +44,7 @@ impl StdError for Error {
match self {
Error::Io(error) => Some(error),
_ => None
_ => None,
}
}
}
@ -62,9 +62,7 @@ impl Display for Error {
f.write_str("found more than one row when we expected exactly one")
}
Error::__Nonexhaustive => {
unreachable!()
}
Error::__Nonexhaustive => unreachable!(),
}
}
}

View File

@ -11,12 +11,12 @@ mod macros;
#[macro_use]
mod io;
pub mod backend;
mod backend;
pub mod deserialize;
mod url;
#[macro_use]
pub mod row;
mod row;
mod connection;
pub mod error;
@ -32,11 +32,16 @@ pub mod types;
#[doc(inline)]
pub use self::{
backend::Backend,
connection::Connection,
deserialize::FromSql,
error::{Error, Result},
executor::Executor,
pool::Pool,
row::{FromSqlRow, Row},
serialize::ToSql,
sql::{query, SqlQuery},
types::HasSqlType,
};
#[cfg(feature = "mariadb")]