Inline Printer's scan_pop_bottom method
This commit is contained in:
parent
2a14275500
commit
ae28ec5a9c
1 changed files with 1 additions and 5 deletions
|
@ -337,7 +337,7 @@ impl Printer {
|
|||
fn check_stream(&mut self) {
|
||||
if self.right_total - self.left_total > self.space {
|
||||
if Some(&self.left) == self.scan_stack.back() {
|
||||
let scanned = self.scan_pop_bottom();
|
||||
let scanned = self.scan_stack.pop_back().unwrap();
|
||||
self.buf[scanned].size = SIZE_INFINITY;
|
||||
}
|
||||
self.advance_left();
|
||||
|
@ -347,10 +347,6 @@ impl Printer {
|
|||
}
|
||||
}
|
||||
|
||||
fn scan_pop_bottom(&mut self) -> usize {
|
||||
self.scan_stack.pop_back().unwrap()
|
||||
}
|
||||
|
||||
fn advance_left(&mut self) {
|
||||
let mut left_size = self.buf[self.left].size;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue