Derive Clone and Debug for Chapter and Book

This commit is contained in:
Mathieu David 2016-06-28 19:36:06 +02:00
parent c69161cef8
commit d664618e9f
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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,