The current implementation for creating the JobInfo struct is horrible. We're reading each line, splitting on a colon and collecting to a Vec. This assumes the split has enough items to fit into the expected size of JobInfo by using indexing and does a whole bunch of type coercing.
The serde crate feels like a better way to do this.
The current implementation for creating the JobInfo struct is horrible. We're reading each line, splitting on a colon and collecting to a Vec. This assumes the split has enough items to fit into the expected size of JobInfo by using indexing and does a whole bunch of type coercing.
The serde crate feels like a better way to do this.