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:
@@ -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>,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use super::*;
|
||||
|
||||
pub(in crate::responses) struct ToolStream {
|
||||
struct ToolStream {
|
||||
sender: mpsc::Sender<Value>,
|
||||
sequence: usize,
|
||||
response_id: String,
|
||||
|
||||
Reference in New Issue
Block a user