Fix output
This commit is contained in:
parent
b2ffb9a248
commit
be00b21905
@ -29,8 +29,11 @@ fn write_csv_positions<R: Rng, P: Position, S: Storage<P>, W: Walker<P>, Sp: Spa
|
|||||||
.map(|line| &line.position)
|
.map(|line| &line.position)
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
wtr.serialize(positions)
|
positions
|
||||||
.unwrap();
|
.iter()
|
||||||
|
.for_each(|position|
|
||||||
|
wtr.serialize(position).expect("Failed to write row")
|
||||||
|
);
|
||||||
|
|
||||||
wtr.flush()
|
wtr.flush()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user