fn parse_file(file: String) -> io::Result<Vec<student::ActiveModel>> {
    let mut vec = vec![];
    let file = File::open(file)?;
    let lines = io::BufReader::new(file).lines();
    for line in lines {
        let line = line?;
        vec.push(parse_student_info(line)?);
    }
    Ok(vec)
}
/// Info from file has the same format as stdin.
Info from file has the same format as stdin.
Info from file has the same format as stdin .
fn parse_file(file: String) -> io::Result<Vec<student::ActiveModel>> {
    let mut vec = vec![];
    let file = File::open(file)?;
    let lines = io::BufReader::new(file).lines();
    for line in lines {
        let line = line?;
        vec.push(parse_student_info(line)?);
    }
    Ok(vec)
}
fn parse_file ( file : String ) -> io :: Result < Vec < student :: ActiveModel > > { let mut vec = vec ! [ ] ; let file = File :: open ( file ) ? ; let lines = io :: BufReader :: new ( file ) . lines ( ) ; for line in lines { let line = line ? ; vec . push ( parse_student_info ( line ) ? ) ; } Ok ( vec ) }
Info from file has the same format as stdin.
Info from file has the same format as stdin .
file
String
file
String