Skip to content

Commit e74fdb1

Browse files
committed
Make chapter_titles optional in Book
1 parent 7305e8c commit e74fdb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/book/book.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ pub struct Book {
128128
/// The sections in this book.
129129
pub sections: Vec<BookItem>,
130130
/// Chapter title overrides for this book.
131+
#[serde(default)]
131132
pub chapter_titles: HashMap<PathBuf, String>,
132133
__non_exhaustive: (),
133134
}

0 commit comments

Comments
 (0)