From 13b54108494b7492b3772ff477ed9a02c56c7972 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 16 Nov 2023 23:19:29 -0500 Subject: chore: cleanup imports --- src/utils.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 8773b14..780ecc9 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,5 +1,4 @@ -use crate::consts::*; -use crate::Error; +use crate::{consts, Error}; use once_cell::sync::Lazy; use poise::serenity_prelude::GuildId; @@ -46,7 +45,7 @@ pub fn floor_char_boundary(s: &str, index: usize) -> usize { pub fn is_guild_allowed(gid: GuildId) -> bool { static ALLOWED_GUILDS: Lazy> = Lazy::new(|| { parse_snowflakes_from_env("ALLOWED_GUILDS", GuildId) - .unwrap_or_else(|| vec![TEAWIE_GUILD, GuildId(1091969030694375444)]) + .unwrap_or_else(|| vec![consts::TEAWIE_GUILD, GuildId(1091969030694375444)]) }); ALLOWED_GUILDS.contains(&gid) -- cgit v1.2.3