Skip to content

Commit fd9d27e

Browse files
committed
rustfmt
1 parent 0e1787c commit fd9d27e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/cmd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Subcommand modules for the `mdbook` binary.
1+
//! Subcommand modules for the `mdbook` binary.
22
33
pub mod build;
44
pub mod clean;

src/cmd/serve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ extern crate ws;
55
use self::iron::{
66
status, AfterMiddleware, Chain, Iron, IronError, IronResult, Request, Response, Set,
77
};
8+
#[cfg(feature = "watch")]
9+
use super::watch;
810
use clap::{App, ArgMatches, SubCommand};
911
use mdbook::errors::*;
1012
use mdbook::utils;
1113
use mdbook::MDBook;
1214
use std;
13-
#[cfg(feature = "watch")]
14-
use super::watch;
1515
use {get_book_dir, open};
1616

1717
struct ErrorRecover;

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ impl Renderer for HtmlHandlebars {
370370
.chain_err(|| "Unable to copy across additional CSS and JS")?;
371371

372372
// Render search index
373-
#[cfg(feature = "search")] {
373+
#[cfg(feature = "search")]
374+
{
374375
let search = html_config.search.unwrap_or_default();
375376
if search.enable {
376377
super::search::create_files(&search, &destination, &book)?;

0 commit comments

Comments
 (0)