mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Add Send and Sync bounds to boxed errors to be comaptible with io::Error.
This commit is contained in:
parent
047861b928
commit
2129cdb0f2
@ -11,7 +11,7 @@ pub type SqliteError = Error;
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
SqliteFailure(ffi::Error, Option<String>),
|
SqliteFailure(ffi::Error, Option<String>),
|
||||||
FromSqlConversionFailure(Box<error::Error>),
|
FromSqlConversionFailure(Box<error::Error + Send + Sync>),
|
||||||
Utf8Error(str::Utf8Error),
|
Utf8Error(str::Utf8Error),
|
||||||
NulError(::std::ffi::NulError),
|
NulError(::std::ffi::NulError),
|
||||||
InvalidParameterName(String),
|
InvalidParameterName(String),
|
||||||
@ -26,7 +26,7 @@ pub enum Error {
|
|||||||
InvalidFunctionParameterType,
|
InvalidFunctionParameterType,
|
||||||
#[cfg(feature = "functions")]
|
#[cfg(feature = "functions")]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
UserFunctionError(Box<error::Error>),
|
UserFunctionError(Box<error::Error + Send + Sync>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<str::Utf8Error> for Error {
|
impl From<str::Utf8Error> for Error {
|
||||||
|
Loading…
Reference in New Issue
Block a user