diff --git a/azure-kusto-data/src/operations/v2.rs b/azure-kusto-data/src/operations/v2.rs index e2db017..e0f47ce 100644 --- a/azure-kusto-data/src/operations/v2.rs +++ b/azure-kusto-data/src/operations/v2.rs @@ -1,3 +1,4 @@ +use crate::error::ParseError; use crate::error::{Error, Error::JsonError, Partial, partial_from_tuple, PartialExt, Result}; use crate::models::v2; use crate::models::v2::{DataTable, Frame, QueryCompletionInformation, QueryProperties, TableKind}; @@ -7,11 +8,10 @@ use futures::{ }; use std::sync::Arc; use tokio::sync::mpsc::{Receiver, Sender}; -use crate::error::ParseError; pub fn parse_frames_iterative( reader: impl AsyncBufRead + Unpin, -) -> impl Stream> { +) -> impl Stream> { let buf = Vec::with_capacity(4096); stream::unfold((reader, buf), |(mut reader, mut buf)| async move { buf.clear(); @@ -55,7 +55,7 @@ struct StreamingDataset { } impl StreamingDataset { - fn new(stream: impl Stream> + Send + 'static) -> Self { + fn new(stream: impl Stream> + Send + 'static) -> Self { let (tx, rx) = tokio::sync::mpsc::channel(1); let res = StreamingDataset { header: Arc::new(Mutex::new(None)), @@ -86,7 +86,7 @@ async fn populate_with_stream( completion_store: OM, query_properties: OM>, query_completion_information: OM>, - stream: impl Stream>, + stream: impl Stream>, tx: &Sender>, ) -> Result<()> { pin_mut!(stream);