From 10aa08479b025de62d406126d54099450cbf5b6b Mon Sep 17 00:00:00 2001 From: Hamza Jadid Date: Fri, 24 May 2024 10:54:50 +0300 Subject: [PATCH] refactor(transport): remove redundanut trait bounds --- jarust_transport/src/trans.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jarust_transport/src/trans.rs b/jarust_transport/src/trans.rs index 76d6b4a..caff139 100644 --- a/jarust_transport/src/trans.rs +++ b/jarust_transport/src/trans.rs @@ -17,13 +17,14 @@ pub trait TransportProtocol: Debug + Send + Sync + 'static { /// Send a message over the transport. async fn send(&mut self, data: &[u8]) -> JaTransportResult<()>; + /// Read-only str for the debug trait fn name(&self) -> Box { "TransportProtocol".to_string().into_boxed_str() } } pub struct TransportSession { - inner: Box, + inner: Box, } impl TransportSession {