style: style
This commit is contained in:
parent
b28d5b840f
commit
b38b5360f6
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
use diesel::{
|
use diesel::{
|
||||||
ExpressionMethods, Insertable, QueryDsl, Queryable, Selectable, SelectableHelper, insert_into,
|
ExpressionMethods, Insertable, QueryDsl, Queryable, Selectable, SelectableHelper, insert_into, delete,
|
||||||
};
|
};
|
||||||
use diesel_async::RunQueryDsl;
|
use diesel_async::RunQueryDsl;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
@ -194,7 +194,7 @@ impl Member {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn delete(self, conn: &mut Conn) -> Result<(), Error> {
|
pub async fn delete(self, conn: &mut Conn) -> Result<(), Error> {
|
||||||
diesel::delete(guild_members::table)
|
delete(guild_members::table)
|
||||||
.filter(guild_members::uuid.eq(self.uuid))
|
.filter(guild_members::uuid.eq(self.uuid))
|
||||||
.execute(conn)
|
.execute(conn)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue