Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Sep 22, 2024
1 parent 039b28b commit b8adf8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripty_audio_handler/src/audio_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl AudioHandler {
loop {
tokio::select! {
val = rx.recv() => {
let Ok(val) = val else {
let Ok(()) = val else {
debug!(%guild_id, "all tx handlers for this call dropped");
return;
};
Expand Down
8 changes: 2 additions & 6 deletions scripty_commands/src/cmds/join.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{borrow::Cow, time::SystemTime};
use std::time::SystemTime;

use humantime::format_rfc3339_seconds;
use poise::CreateReply;
Expand Down Expand Up @@ -208,10 +208,6 @@ pub async fn join(
return Ok(());
}

let premium_level = scripty_premium::get_guild(guild_id.get())
.await
.map_or(0, |l| l as u8);

let (target_thread, target_channel) = if create_thread
&& target_channel.kind != ChannelType::Forum
{
Expand Down Expand Up @@ -289,7 +285,7 @@ pub async fn join(
false,
)
.field(
"",
"\u{200B}",
format_message!(resolved_language, "join-success-premium"),
false,
);
Expand Down

0 comments on commit b8adf8d

Please sign in to comment.