diff --git a/src/book/book.rs b/src/book/book.rs index c5e46de8..18572545 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -4,6 +4,7 @@ use book::chapter::Chapter; /// The `Book` struct contains the metadata and chapters for one language of the book. /// Multiple `Book` structs are combined in the `MDBook` struct to support multi-language books. +#[derive(Debug, Clone)] pub struct Book { metadata: BookMetadata, diff --git a/src/book/chapter.rs b/src/book/chapter.rs index 23244cb5..db8ce3ea 100644 --- a/src/book/chapter.rs +++ b/src/book/chapter.rs @@ -2,6 +2,7 @@ use std::path; /// The Chapter struct holds the title of the chapter as written in the SUMMARY.md file, /// the location of the markdown file containing the content and eventually sub-chapters +#[derive(Debug, Clone)] pub struct Chapter { title: String, file: path::PathBuf,