[READ-ONLY] Mirror of https://github.com/probablykasper/csv-pipeline.
0

Configure Feed

Select the types of activity you want to include in your feed.

`from_pipelines` accepts iterator

Kasper (May 25, 2023, 8:32 AM +0200) e71fbe2e a460b5b1

+8 -1
+3
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## Next 4 + - Changed `from_pipelines` to accept an iterator instead of vector 5 + 3 6 ## 0.3.1 - 2023 Feb 17 4 7 - Fix `Pipeline::from_path` panic 5 8
+5 -1
src/pipeline.rs
··· 68 68 /// 69 69 /// assert_eq!(csv, "A,B\n1,2\n1,2\n"); 70 70 /// ``` 71 - pub fn from_pipelines(pipelines: Vec<Pipeline<'a>>) -> Self { 71 + pub fn from_pipelines<I>(pipelines: I) -> Self 72 + where 73 + I: IntoIterator<Item = Pipeline<'a>>, 74 + <I as IntoIterator>::IntoIter: 'a, 75 + { 72 76 let mut pipelines = pipelines.into_iter(); 73 77 let current = pipelines.next(); 74 78 let headers = match current {