mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-25 02:46:08 +02:00
Clear secondary bar on parsing error
This commit is contained in:
parent
582ccefa27
commit
62d10980ee
|
@ -206,6 +206,9 @@ impl Book {
|
|||
|
||||
impl Drop for Book {
|
||||
fn drop(&mut self) {
|
||||
if let Some(ref bar) = self.bars.secondbar {
|
||||
bar.finish_and_clear();
|
||||
}
|
||||
if let Some(ref bar) = self.bars.mainbar {
|
||||
bar.finish();
|
||||
let guard = mem::replace(&mut self.bars.guard, None);
|
||||
|
|
Loading…
Reference in New Issue