1
0
Fork 0
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:
Elisabeth Henry 2017-11-26 20:52:28 +01:00
parent 582ccefa27
commit 62d10980ee

View File

@ -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);