From dc69de9e3535e3ca49f6b74c54d2c32d218c2d81 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 1 Mar 2025 18:38:46 -0700 Subject: Clean up warnings --- src/system/plugin.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/system/plugin.rs') diff --git a/src/system/plugin.rs b/src/system/plugin.rs index 379606d..8e6066f 100644 --- a/src/system/plugin.rs +++ b/src/system/plugin.rs @@ -9,7 +9,7 @@ use std::{collections::HashMap, sync::Arc}; use async_trait::async_trait; use edit::Edit; -use twilight_model::{channel::{Channel, Message}, id::{marker::ChannelMarker, Id}}; +use twilight_model::{channel::Message, id::{marker::ChannelMarker, Id}}; use super::log::Logger; use crate::system::types::{System, Response}; @@ -19,8 +19,8 @@ pub use autoproxy::Autoproxy; #[derive(Copy, Clone, Debug)] pub enum PluginCommand { - Long(&'static str), - Short(&'static str), + Word(&'static str), + Char(&'static str), } #[async_trait] @@ -46,8 +46,8 @@ pub fn get_plugins<'system>() -> (Vec>>>, Hash let commands = plugin.get_commands(); commands.into_iter().map(|command| { match command { - PluginCommand::Long(command_word) => (command_word, (command, plugin.clone())), - PluginCommand::Short(command_char) => (command_char, (command, plugin.clone())), + PluginCommand::Word(command_word) => (command_word, (command, plugin.clone())), + PluginCommand::Char(command_char) => (command_char, (command, plugin.clone())), } }) }) -- cgit 1.4.1