From 28192c2fcd15d6af68cd1cfc832ad526d1052a23 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Thu, 5 Nov 2026 14:09:51 +0100 Subject: [PATCH] STRA-338 S6 (improve): ToolStream stays private to the tools module The re-export of ToolStream from responses/stream.rs was unused and failed Clippy -D warnings on Linux (unused import); the struct is only used inside tools.rs, so it is private again and only stream_live_tools is re-exported. --- control-plane/src/responses/stream.rs | 2 +- control-plane/src/responses/stream/tools.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/control-plane/src/responses/stream.rs b/control-plane/src/responses/stream.rs index accbef59..d03699b1 100644 --- a/control-plane/src/responses/stream.rs +++ b/control-plane/src/responses/stream.rs @@ -9,7 +9,7 @@ mod tools; pub(super) use buffered::stream_live_buffered; pub(super) use text::stream_live_text; -pub(super) use tools::{ToolStream, stream_live_tools}; +pub(super) use tools::stream_live_tools; pub(super) struct ResponseEventStream { receiver: mpsc::Receiver, diff --git a/control-plane/src/responses/stream/tools.rs b/control-plane/src/responses/stream/tools.rs index 8ef0e90f..3edfe4ec 100644 --- a/control-plane/src/responses/stream/tools.rs +++ b/control-plane/src/responses/stream/tools.rs @@ -2,7 +2,7 @@ use super::*; -pub(in crate::responses) struct ToolStream { +struct ToolStream { sender: mpsc::Sender, sequence: usize, response_id: String,