mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-04 00:04:25 +02:00
refactor: fix clippy warnings
This commit is contained in:
parent
b1372177c9
commit
729d5abff4
@ -14,7 +14,7 @@ pub async fn message_create(ctx: &serenity::Context, new_message: &serenity::Mes
|
||||
return;
|
||||
}
|
||||
|
||||
if let Some(message_response) = get_configuration_lock(&ctx)
|
||||
if let Some(message_response) = get_configuration_lock(ctx)
|
||||
.await
|
||||
.read()
|
||||
.await
|
||||
|
@ -10,7 +10,7 @@ pub async fn thread_create(ctx: &serenity::Context, thread: &serenity::GuildChan
|
||||
|
||||
debug!("Thread created: {:?}", thread);
|
||||
|
||||
let configuration_lock = get_configuration_lock(&ctx).await;
|
||||
let configuration_lock = get_configuration_lock(ctx).await;
|
||||
let thread_introductions = &configuration_lock.read().await.thread_introductions;
|
||||
|
||||
if let Some(introducer) = thread_introductions.iter().find(|introducer| {
|
||||
|
@ -1,5 +1,5 @@
|
||||
use decancer::Decancer;
|
||||
use poise::serenity_prelude::{self as serenity, CreateEmbed, RwLock};
|
||||
use poise::serenity_prelude::{self as serenity, CreateEmbed};
|
||||
use tracing::info;
|
||||
|
||||
use crate::model::application::Configuration;
|
||||
|
Loading…
x
Reference in New Issue
Block a user