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.
This commit is contained in:
Pavlo Ratushnyi
2026-11-05 14:09:51 +01:00
parent c10563ab08
commit 28192c2fcd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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<Value>,
+1 -1
View File
@@ -2,7 +2,7 @@
use super::*;
pub(in crate::responses) struct ToolStream {
struct ToolStream {
sender: mpsc::Sender<Value>,
sequence: usize,
response_id: String,