Workaround
This commit is contained in:
parent
1626fb0624
commit
5683174746
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ impl<D: DatabaseInterface> DatabaseInterface for Database<D> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait DatabaseInterface: Clone + Send + Sync + 'static {
|
pub trait DatabaseInterface: Clone + Send + Sync + 'static {
|
||||||
async fn get_user(&self, user: &UserRef) -> Result<Option<User>, BoxedError>;
|
fn get_user(&self, user: &UserRef) -> impl std::future::Future<Output = Result<Option<User>, BoxedError>> + Send;
|
||||||
async fn create_user(
|
async fn create_user(
|
||||||
&mut self,
|
&mut self,
|
||||||
user: User,
|
user: User,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue