mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Make the empty placeholder params be Send + Sync
This commit is contained in:
parent
6450565cc7
commit
db914abd00
@ -169,8 +169,8 @@ pub trait Params: Sealed {
|
||||
// Explicitly impl for empty array. Critically, for `conn.execute([])` to be
|
||||
// unambiguous, this must be the *only* implementation for an empty array. This
|
||||
// avoids `NO_PARAMS` being a necessary part of the API.
|
||||
impl Sealed for [&dyn ToSql; 0] {}
|
||||
impl Params for [&dyn ToSql; 0] {
|
||||
impl Sealed for [&(dyn ToSql + Send + Sync); 0] {}
|
||||
impl Params for [&(dyn ToSql + Send + Sync); 0] {
|
||||
#[inline]
|
||||
fn __bind_in(self, stmt: &mut Statement<'_>) -> Result<()> {
|
||||
// Note: Can't just return `Ok(())` — `Statement::bind_parameters`
|
||||
|
Loading…
Reference in New Issue
Block a user