From 7b0413704c73719f426651a79ae0551b4dea93e1 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 7 Nov 2021 17:47:04 +0100 Subject: [PATCH] Remove debug requirement for emitted payloads since its not used anyway Signed-off-by: trivernis --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/events/payload.rs | 2 +- src/ipc/stream_emitter.rs | 11 +++++------ 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f4b5ea82..a5fc41a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -511,7 +511,7 @@ dependencies = [ [[package]] name = "rmp-ipc" -version = "0.9.1" +version = "0.9.2" dependencies = [ "async-trait", "byteorder", diff --git a/Cargo.toml b/Cargo.toml index d8a0311f..300b0499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rmp-ipc" -version = "0.9.1" +version = "0.9.2" authors = ["trivernis "] edition = "2018" readme = "README.md" diff --git a/src/events/payload.rs b/src/events/payload.rs index b066eb52..e1ecdf34 100644 --- a/src/events/payload.rs +++ b/src/events/payload.rs @@ -39,7 +39,7 @@ where /// A payload wrapper type for sending bytes directly without /// serializing them -#[derive(Clone, Debug)] +#[derive(Clone)] pub struct BytePayload { bytes: Vec, } diff --git a/src/ipc/stream_emitter.rs b/src/ipc/stream_emitter.rs index 51ebc801..d319fec3 100644 --- a/src/ipc/stream_emitter.rs +++ b/src/ipc/stream_emitter.rs @@ -4,7 +4,6 @@ use crate::events::event::Event; use crate::events::payload::EventSendPayload; use crate::ipc::context::Context; use crate::protocol::AsyncProtocolStream; -use std::fmt::Debug; use std::sync::Arc; use tokio::io::AsyncWriteExt; use tokio::sync::Mutex; @@ -38,7 +37,7 @@ where } #[tracing::instrument(level = "trace", skip(self, data))] - pub async fn _emit( + pub async fn _emit( &self, namespace: Option<&str>, event: &str, @@ -66,7 +65,7 @@ where } /// Emits an event - pub async fn emit, T: EventSendPayload + Debug>( + pub async fn emit, T: EventSendPayload>( &self, event: S, data: T, @@ -75,7 +74,7 @@ where } /// Emits an event to a specific namespace - pub async fn emit_to, S2: AsRef, T: EventSendPayload + Debug>( + pub async fn emit_to, S2: AsRef, T: EventSendPayload>( &self, namespace: S1, event: S2, @@ -86,7 +85,7 @@ where } /// Emits a response to an event - pub async fn emit_response, T: EventSendPayload + Debug>( + pub async fn emit_response, T: EventSendPayload>( &self, event_id: u64, event: S, @@ -96,7 +95,7 @@ where } /// Emits a response to an event to a namespace - pub async fn emit_response_to, S2: AsRef, T: EventSendPayload + Debug>( + pub async fn emit_response_to, S2: AsRef, T: EventSendPayload>( &self, event_id: u64, namespace: S1,