Simplify print_end

Presumably the code was from an older age of Rust and can now be written
much simpler.
This commit is contained in:
Mark Rousskov 2019-07-07 10:38:09 -04:00
parent 55a6a761b9
commit 57cf7a2e57

View file

@ -521,9 +521,7 @@ impl Printer {
fn print_end(&mut self) {
debug!("print End -> pop End");
let print_stack = &mut self.print_stack;
assert!(!print_stack.is_empty());
print_stack.pop().unwrap();
self.print_stack.pop().unwrap();
}
fn print_break(&mut self, b: BreakToken, l: isize) {