diff options
Diffstat (limited to 'src/book')
-rw-r--r-- | src/book/book.rs | 3 | ||||
-rw-r--r-- | src/book/init.rs | 2 | ||||
-rw-r--r-- | src/book/mod.rs | 2 | ||||
-rw-r--r-- | src/book/summary.rs | 3 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/book/book.rs b/src/book/book.rs index a14d31b9..62af2d92 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -481,7 +481,8 @@ And here is some \ .filter_map(|i| match *i { BookItem::Chapter(ref ch) => Some(ch.name.clone()), _ => None, - }).collect(); + }) + .collect(); let should_be: Vec<_> = vec![ String::from("Chapter 1"), String::from("Hello World"), diff --git a/src/book/init.rs b/src/book/init.rs index 4726d570..740eb27b 100644 --- a/src/book/init.rs +++ b/src/book/init.rs @@ -136,7 +136,7 @@ impl BookBuilder { let mut book_css = File::create(cssdir.join("book.css"))?; book_css.write_all(theme::BOOK_CSS)?; - + let mut chrome_css = File::create(cssdir.join("chrome.css"))?; chrome_css.write_all(theme::CHROME_CSS)?; diff --git a/src/book/mod.rs b/src/book/mod.rs index 9a413759..5002c353 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -99,7 +99,7 @@ impl MDBook { pub fn load_with_config_and_summary<P: Into<PathBuf>>( book_root: P, config: Config, - summary: Summary + summary: Summary, ) -> Result<MDBook> { let root = book_root.into(); diff --git a/src/book/summary.rs b/src/book/summary.rs index 31bf0b9b..d236d8a1 100644 --- a/src/book/summary.rs +++ b/src/book/summary.rs @@ -477,7 +477,8 @@ fn stringify_events(events: Vec<Event>) -> String { .filter_map(|t| match t { Event::Text(text) => Some(text.into_owned()), _ => None, - }).collect() + }) + .collect() } /// A section number like "1.2.3", basically just a newtype'd `Vec<u32>` with |