Skip to content

Commit e4f32a8

Browse files
committed
Refactor handle_event function to remove unnecessary async block
1 parent 2028456 commit e4f32a8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ async fn create_application_commands(client: &Client) -> anyhow::Result<()> {
9494
Ok(())
9595
}
9696

97-
async fn handle_event(
98-
event: Event,
99-
client: Arc<Client>,
100-
) -> anyhow::Result<()> {
97+
async fn handle_event(event: Event, client: Arc<Client>) -> anyhow::Result<()> {
10198
match event {
10299
Event::Ready(_) => {
103100
log::info!("Shard is ready");

0 commit comments

Comments
 (0)