refactor: harden clippy lints

This commit is contained in:
seth 2024-01-27 23:18:35 -05:00
parent 2b3d81cfa4
commit a4abdd72e4
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
19 changed files with 39 additions and 37 deletions

View file

@ -1,6 +1,6 @@
use std::str::FromStr;
use log::*;
use log::{info, warn};
use poise::serenity_prelude::ChannelId;
#[derive(Debug, Clone, Default)]
@ -9,7 +9,7 @@ pub struct RefractionChannels {
}
#[derive(Debug, Clone, Default)]
pub struct DiscordConfig {
pub struct Config {
pub channels: RefractionChannels,
}
@ -33,7 +33,7 @@ impl RefractionChannels {
}
}
impl DiscordConfig {
impl Config {
pub fn new_from_env() -> Self {
let channels = RefractionChannels::new_from_env();