Skip to content

Commit

Permalink
🎨 Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-sized-emi committed Dec 28, 2023
1 parent 4dacbc7 commit 3b59404
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ pub async fn setup_discord_logging(framework: Arc<bot::Framework>, db: Pool<MySq
// Setup logging channels per server
let guild_to_log_channel = mysql_lib::get_all_guilds(&db).await.into_iter()
.filter_map(|guild| {
if let Some(logger_pipe_channel) = guild.logger_pipe_channel {
Some((guild.guild_id.0, logger_pipe_channel.0))
} else {
None
}
guild.logger_pipe_channel.map(|logger_pipe_channel|
(guild.guild_id.0, logger_pipe_channel.0))
})
.collect();

Expand Down

0 comments on commit 3b59404

Please sign in to comment.