Skip to content

Commit

Permalink
fix: Implement into_stream_boxed for all loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Sep 11, 2024
1 parent 45d8a57 commit 8595553
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swiftide-integrations/src/fluvio/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ impl Loader for Fluvio {

swiftide_stream.boxed().into()
}

fn into_stream_boxed(self: Box<Self>) -> IndexingStream {
self.into_stream()
}
}

#[cfg(test)]
Expand Down
4 changes: 4 additions & 0 deletions swiftide-integrations/src/parquet/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ impl Loader for Parquet {

// let mask = ProjectionMask::
}

fn into_stream_boxed(self: Box<Self>) -> IndexingStream {
self.into_stream()
}
}

#[cfg(test)]
Expand Down
4 changes: 4 additions & 0 deletions swiftide-integrations/src/scraping/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,8 @@ impl Loader for ScrapingLoader {

IndexingStream::iter(rx)
}

fn into_stream_boxed(self: Box<Self>) -> IndexingStream {
self.into_stream()
}
}

0 comments on commit 8595553

Please sign in to comment.