Clippy fixes
All checks were successful
Rust / check (push) Successful in 39s

This commit is contained in:
August 2026-05-26 23:12:34 -04:00
parent 07f7cddf71
commit accc834375
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw

View File

@ -39,10 +39,9 @@ pub async fn event_handler(
) -> Result<(), Error> { ) -> Result<(), Error> {
// Future event handling will go here // Future event handling will go here
// Data will contain the database connection // Data will contain the database connection
match &event { if let &FullEvent::Message { new_message } = &event {
&FullEvent::Message { new_message } => { if new_message.guild_id.unwrap() == SLOP_SCOUNDREL_SERVER_ID
if new_message.guild_id.unwrap() == SLOP_SCOUNDREL_SERVER_ID { && new_message
if new_message
.author .author
.has_role( .has_role(
ctx.http.clone(), ctx.http.clone(),
@ -79,8 +78,5 @@ pub async fn event_handler(
} }
} }
} }
}
_ => {}
}
Ok(()) Ok(())
} }