mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Make more modules private and opt to expose some types/traits directly
This commit is contained in:
parent
abb7d12087
commit
d4096cf2a4
@ -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!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user