diff --git a/src/components.rs b/src/components.rs index ddece16..a65d62d 100644 --- a/src/components.rs +++ b/src/components.rs @@ -208,20 +208,11 @@ impl AsRef for Outgoing { } } -impl Outgoing { +impl Outgoing { /// Create a new outgoing command event #[inline] #[must_use] - pub fn new(command: irc::Command) -> Self { - Self(command) - } -} - -impl Outgoing { - /// Create a new outgoing message event - #[inline] - #[must_use] - pub fn new(message: irc::Message) -> Self { - Self(message) + pub fn new(msg: T) -> Self { + Self(msg) } }