for (i, ch) in s.bytes().enumerate() {
match ch as char {
'<' | '>' | '&' | '\'' | '"' => {
- fmt.write_str(&pile_o_bits[last.. i])?;
+ fmt.write_str(&pile_o_bits[last..i])?;
let s = match ch as char {
'>' => ">",
'<' => "<",
'&' => "&",
'\'' => "'",
'"' => """,
- _ => unreachable!()
+ _ => unreachable!(),
};
fmt.write_str(s)?;
last = i + 1;