refactor: fix clippy warnings

This commit is contained in:
oSumAtrIX 2022-08-09 19:15:12 +02:00
parent b1372177c9
commit 729d5abff4
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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| {

View File

@ -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;