diff options
| author | Nathan Perry <np@npry.dev> | 2025-12-17 18:54:10 -0500 |
|---|---|---|
| committer | Nathan Perry <np@npry.dev> | 2025-12-17 20:19:10 -0500 |
| commit | d9af3725c5b4b8df91671fd425b734ee30924d8e (patch) | |
| tree | 49b38fbfc746079f516a82da06dfde2ac552edb0 /src/util/mod.rs | |
| parent | 51fda9d1a1ea6553fe034f86c1fd667a159d5ae1 (diff) | |
fix check lints
Diffstat (limited to 'src/util/mod.rs')
| -rw-r--r-- | src/util/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<U, E>( ctx: poise::Context<'_, U, E>, text: impl AsRef<str>, -) -> Result<poise::ReplyHandle, serenity::Error> { +) -> Result<poise::ReplyHandle<'_>, serenity::Error> { let handle = poise::send_reply( ctx, CreateReply::default() @@ -185,7 +185,7 @@ pub fn guild(ctx: PoiseContext<'_>) -> anyhow::Result<GuildRef<'_>> { } #[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(); |
