refactor(events/mod): passing the rustfmt

This commit is contained in:
Raphael 2026-02-12 16:28:01 +01:00
parent 3004d99444
commit 04bced81ed
No known key found for this signature in database

View file

@ -1,7 +1,7 @@
include!("./mod_gen.rs"); include!("./mod_gen.rs");
use serenity::all::*;
use crate::commands::SlashCommand; use crate::commands::SlashCommand;
use serenity::all::*;
pub struct Bot { pub struct Bot {
pub commands: Vec<Box<dyn SlashCommand>>, pub commands: Vec<Box<dyn SlashCommand>>,
@ -9,7 +9,6 @@ pub struct Bot {
#[serenity::async_trait] #[serenity::async_trait]
impl EventHandler for Bot { impl EventHandler for Bot {
async fn ready(&self, ctx: Context, ready: Ready) { async fn ready(&self, ctx: Context, ready: Ready) {
bot::ready::handle(&ctx, &ready, &self.commands).await; bot::ready::handle(&ctx, &ready, &self.commands).await;
} }