fn strip_trailing_newline(mut input: Vec<u8>) -> Vec<u8> {
    while input[..].ends_with(&[b'\n']) || input[..].ends_with(&[b'\r']) {
        input.pop();
    }
    input
}
/// Remove a trailing newline from a byte string.
Remove a trailing newline from a byte string.
Remove a trailing newline from a byte string .
fn strip_trailing_newline(mut input: Vec<u8>) -> Vec<u8> {
    while input[..].ends_with(&[b'\n']) || input[..].ends_with(&[b'\r']) {
        input.pop();
    }
    input
}
fn strip_trailing_newline ( mut input : Vec < u8 > ) -> Vec < u8 > { while input [ .. ] . ends_with ( & [ b'\n' ] ) || input [ .. ] . ends_with ( & [ b'\r' ] ) { input . pop ( ) ; } input }
Remove a trailing newline from a byte string.
Remove a trailing newline from a byte string .
input
Vec<u8>
input
Vec<u8>