From e74c3768330461b4804415ffa88f8de9059897be Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Wed, 3 Jan 2018 19:32:49 +0800 Subject: [PATCH] You need to call `rx.iter()` to iterate over events from a channel (#522) --- src/bin/mdbook.rs | 1 + src/bin/serve.rs | 26 +++++++++++++++++++++----- src/bin/watch.rs | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 305f9f94..93794541 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -3,6 +3,7 @@ extern crate clap; extern crate chrono; extern crate env_logger; extern crate error_chain; +#[macro_use] extern crate log; extern crate mdbook; extern crate open; diff --git a/src/bin/serve.rs b/src/bin/serve.rs index ada545fa..ac6a51e5 100644 --- a/src/bin/serve.rs +++ b/src/bin/serve.rs @@ -52,7 +52,7 @@ pub fn execute(args: &ArgMatches) -> Result<()> { let address = format!("{}:{}", interface, port); let ws_address = format!("{}:{}", interface, ws_port); - book.livereload = Some(format!( + let livereload = Some(format!( r#"