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:
parent
55a6a761b9
commit
57cf7a2e57
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue