refactor(src): cargo format on main.rs

This commit is contained in:
Raphael 2026-02-25 21:56:16 +01:00
parent 5c2ff8b926
commit 43c081cc31
No known key found for this signature in database

View file

@ -5,22 +5,22 @@ mod events;
mod models; mod models;
mod utils; mod utils;
use dotenvy::dotenv;
use events::Bot; use events::Bot;
use serenity::all::*; use serenity::Client;
use serenity::all::GatewayIntents;
use sqlx::postgres::PgPoolOptions; use sqlx::postgres::PgPoolOptions;
use sqlx::{Pool, Postgres, migrate}; use sqlx::{Pool, Postgres, migrate};
use std::env; use std::env;
use tracing::{ use tracing::{error, info};
info, use tracing_subscriber::fmt;
error
};
use self::config::emoji::EmojiConfig; use self::config::emoji::EmojiConfig;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
tracing_subscriber::fmt::init(); fmt::init();
dotenvy::dotenv().ok(); dotenv().ok();
let token: String = let token: String =
env::var("DISCORD_TOKEN").expect("❌ | DISCORD_TOKEN missing (check the env file)"); env::var("DISCORD_TOKEN").expect("❌ | DISCORD_TOKEN missing (check the env file)");