diff --git a/src/main.rs b/src/main.rs index ad600b5..602b9a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,8 @@ mod information; mod tools; mod weeb; mod topgg; -use poise::serenity_prelude as serenity; use anyhow::Context as _; +use poise::serenity_prelude as serenity; #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Data; diff --git a/src/tools/mod.rs b/src/tools/mod.rs index ed05e62..574c6c2 100644 --- a/src/tools/mod.rs +++ b/src/tools/mod.rs @@ -1,10 +1,10 @@ pub mod base64; +use anyhow::Context as _; use crate::Context; use csscolorparser::Color; +use poise::serenity_prelude as serenity; use rand::seq::IteratorRandom as _; use regex::{Captures, Regex}; -use poise::serenity_prelude as serenity; -use anyhow::Context as _; fn to_hsl_string(color: &Color) -> String { let (h, s, l, a) = color.to_hsla(); diff --git a/src/topgg.rs b/src/topgg.rs index 188f523..502c51e 100644 --- a/src/topgg.rs +++ b/src/topgg.rs @@ -1,6 +1,6 @@ use crate::bot_id; -use tokio::sync::Mutex; use poise::serenity_prelude as serenity; +use tokio::sync::Mutex; #[derive(Debug, Default, Clone, Copy)] struct Stats {