Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Nov 25, 2024
1 parent 82ed86e commit 1357703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions scripty_audio_handler/src/connect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::time::Duration;

use ahash::RandomState;
use dashmap::DashMap;
use scripty_data_type::get_data;
Expand All @@ -9,11 +7,7 @@ use serenity::{
model::id::{ChannelId, GuildId},
prelude::Context,
};
use songbird::{
error::{JoinError, JoinResult},
events::Event,
CoreEvent,
};
use songbird::{error::JoinError, events::Event, CoreEvent};

use crate::Error;

Expand Down
3 changes: 2 additions & 1 deletion scripty_audio_handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub fn force_handler_update(guild_id: &GuildId) {
}

#[derive(Debug)]
#[allow(dead_code)] // debug impl is ignored during DCA
pub struct InternalSsrcStateDetails {
/// All seen SSRCs
seen_users: Vec<u32>,
Expand Down Expand Up @@ -110,7 +111,7 @@ pub fn get_internal_state(guild_id: &GuildId) -> Option<InternalSsrcStateDetails
.collect(),
ssrcs_actively_speaking_this_tick: v.ssrc_speaking_set.iter().map(|x| *x).collect(),
actively_transcribed_ssrcs: v.active_user_set.iter().map(|x| *x).collect(),
next_ssrcs: v.next_user_list.read().iter().map(|x| *x).collect(),
next_ssrcs: v.next_user_list.read().iter().copied().collect(),
});

ret
Expand Down

0 comments on commit 1357703

Please sign in to comment.