diff --git a/src/core/botinstance.rs b/src/core/botinstance.rs index 1522c30..a668dac 100644 --- a/src/core/botinstance.rs +++ b/src/core/botinstance.rs @@ -43,14 +43,8 @@ pub enum ChangeResult { // pub use ChType::Channel; // //simplifying from enum to struct -pub struct Channel(String); -impl Channel -{ - pub fn construct(channel_string:String) -> Channel - { - Channel(channel_string) - } -} +pub struct Channel(pub String); + use super::botmodules::StatusType; #[derive(Clone)] diff --git a/src/core/botmodules.rs b/src/core/botmodules.rs index f1c9a67..f9d7ff0 100644 --- a/src/core/botmodules.rs +++ b/src/core/botmodules.rs @@ -40,8 +40,6 @@ use crate::core::identity::{self, Permissible,IdentityManager}; use crate::core::bot_actions; -//pub use BotModule; - use std::hash::{Hash, Hasher}; use super::identity::ChatBadge; @@ -416,13 +414,6 @@ pub async fn init(mgr: Arc) { // } pub struct BotModule(pub String); -// //botmodule simplified from enum to tuple struct -// impl BotModule{ -// pub fn construct(module_name:String) -> BotModule -// { -// BotModule(module_name) -// } -// } impl PartialEq for BotModule {