pub fn purge_line(line: &mut Cow<str>) {
        if let Some(last_char) = line.chars().last() {
            if last_char == '\n' {
                line.to_mut().pop();
            }
        }
        #[cfg(target_family = "windows")]
        if let Some(last_char) = line.chars().last() {
            if last_char == '\r' {
                line.to_mut().pop();
            }
        }
    }
/// Either delete \n or \r\n for end of line if line is ending by these
Either delete \n or \r\n for end of line if line is ending by these
Either delete \ n or \ r \ n for end of line if line is ending by these
pub fn purge_line(line: &mut Cow<str>) {
        if let Some(last_char) = line.chars().last() {
            if last_char == '\n' {
                line.to_mut().pop();
            }
        }
        #[cfg(target_family = "windows")]
        if let Some(last_char) = line.chars().last() {
            if last_char == '\r' {
                line.to_mut().pop();
            }
        }
    }
pub fn purge_line ( line : & mut Cow < str > ) { if let Some ( last_char ) = line . chars ( ) . last ( ) { if last_char == '\n' { line . to_mut ( ) . pop ( ) ; } } # [ cfg ( target_family " " ) ] if let Some ( last_char ) = line . chars ( ) . last ( ) { if last_char == '\r' { line . to_mut ( ) . pop ( ) ; } } }
Either delete \n or \r\n for end of line if line is ending by these
Either delete \ n or \ r \ n for end of line if line is ending by these
line
&mut Cow<str>
line
&mut Cow<str>