From ec0e4094889efb9e80bc0d18af14697b9d72b51c Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Wed, 10 Sep 2025 11:43:12 -0700 Subject: [PATCH] fix clippy warnings. --- socktop_connector/src/error.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/socktop_connector/src/error.rs b/socktop_connector/src/error.rs index 9d9ced8..f9bce15 100644 --- a/socktop_connector/src/error.rs +++ b/socktop_connector/src/error.rs @@ -9,8 +9,7 @@ pub enum ConnectorError { #[cfg(feature = "networking")] #[error("WebSocket connection failed: {source}")] ConnectionFailed { - #[from] - source: tokio_tungstenite::tungstenite::Error, + source: Box, }, /// URL parsing error @@ -144,3 +143,13 @@ impl From for ConnectorError { } } } + +// Manual From implementation for boxed tungstenite errors +#[cfg(feature = "networking")] +impl From for ConnectorError { + fn from(source: tokio_tungstenite::tungstenite::Error) -> Self { + Self::ConnectionFailed { + source: Box::new(source), + } + } +}