fn verify(line: &str) -> Result<i32, ParseError> {
    if !line.starts_with("osu file format v") {
        return Err(ParseError::InvalidFile);
    }

    cvt_err!("Error parsing file version", line[17..].parse::<i32>())
}
/// Verifies that the file headers are correct and returns the file format version
Verifies that the file headers are correct and returns the file format version
Verifies that the file headers are correct and returns the file format version
fn verify(line: &str) -> Result<i32, ParseError> {
    if !line.starts_with("osu file format v") {
        return Err(ParseError::InvalidFile);
    }
    cvt_err!("Error parsing file version", line[17..].parse::<i32>())
}
fn verify ( line : & str ) -> Result < i32 , ParseError > { if ! line . starts_with ( " " ) { return Err ( ParseError :: InvalidFile ) ; } cvt_err ! ( " " line [ 17 ] parse i32 ( ) ) }
Verifies that the file headers are correct and returns the file format version
Verifies that the file headers are correct and returns the file format version
line
&str
line
&str