From d9af3725c5b4b8df91671fd425b734ee30924d8e Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 17 Dec 2025 18:54:10 -0500 Subject: fix check lints --- src/util/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util') diff --git a/src/util/mod.rs b/src/util/mod.rs index 395d264..db85a9b 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -37,9 +37,9 @@ use tap::Pipe; use url::Url; use crate::{ - commands::playback::songbird, - PoiseContext, CONFIG, + PoiseContext, + commands::playback::songbird, }; mod rest_vec; @@ -140,7 +140,7 @@ pub async fn send( pub async fn reply( ctx: poise::Context<'_, U, E>, text: impl AsRef, -) -> Result { +) -> Result, serenity::Error> { let handle = poise::send_reply( ctx, CreateReply::default() @@ -185,7 +185,7 @@ pub fn guild(ctx: PoiseContext<'_>) -> anyhow::Result> { } #[inline] -pub fn author_voice_state(ctx: PoiseContext<'_>) -> Option<(VoiceState, GuildRef)> { +pub fn author_voice_state(ctx: PoiseContext<'_>) -> Option<(VoiceState, GuildRef<'_>)> { let guild = ctx.guild()?; let caller_voice = guild.voice_states.get(&ctx.author().id)?.clone(); -- cgit v1.3.1