mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-20 14:21:57 +00:00
Require Acquire::Connection to be Send
This commit is contained in:
parent
df6a2a2eb6
commit
77238108cf
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ use std::ops::{Deref, DerefMut};
|
|||
pub trait Acquire<'c> {
|
||||
type Database: Database;
|
||||
|
||||
type Connection: Deref<Target = <Self::Database as Database>::Connection> + DerefMut;
|
||||
type Connection: Deref<Target = <Self::Database as Database>::Connection> + DerefMut + Send;
|
||||
|
||||
fn acquire(self) -> BoxFuture<'c, Result<Self::Connection, Error>>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue