mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-17 17:02:23 +08:00
Introduce err macro
This commit is contained in:
@@ -608,10 +608,7 @@ impl Statement<'_> {
|
||||
}
|
||||
#[cfg(feature = "functions")]
|
||||
ToSqlOutput::Arg(_) => {
|
||||
return Err(Error::SqliteFailure(
|
||||
ffi::Error::new(ffi::SQLITE_MISUSE),
|
||||
Some(format!("Unsupported value \"{value:?}\"")),
|
||||
));
|
||||
return Err(err!(ffi::SQLITE_MISUSE, "Unsupported value \"{value:?}\""));
|
||||
}
|
||||
#[cfg(feature = "array")]
|
||||
ToSqlOutput::Array(a) => {
|
||||
|
||||
Reference in New Issue
Block a user