fmt: not sure how this one slipped by
Some checks failed
On_Push / lint_fmt (push) Successful in 7s
On_Push / lint_clippy (push) Failing after 10s
On_Push / build (push) Has been skipped
On_Push / deploy (push) Has been skipped

This commit is contained in:
silver 2024-09-30 00:12:48 +01:00
parent d1af8a7c1f
commit 1c3ccbecf5
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -201,7 +201,7 @@ pub mod tools {
pub async fn on_role_change(db: &Pool<Sqlite>, ctx: &Context, mut new_data: Member) { pub async fn on_role_change(db: &Pool<Sqlite>, ctx: &Context, mut new_data: Member) {
// check if the role changed is part of the oens for this server // check if the role changed is part of the oens for this server
if let Some(role_adders) = sqlx::query_as::<_, RoleAdder>( if let Ok(role_adders) = sqlx::query_as::<_, RoleAdder>(
r#" r#"
SELECT * SELECT *
FROM roles_adder FROM roles_adder
@ -211,7 +211,6 @@ pub mod tools {
.bind(*new_data.guild_id.as_u64() as i64) .bind(*new_data.guild_id.as_u64() as i64)
.fetch_all(db) .fetch_all(db)
.await .await
.ok()
{ {
let mut roles_add = vec![]; let mut roles_add = vec![];
let mut roles_remove = vec![]; let mut roles_remove = vec![];