Merge pull request #300 from budziq/serving_url

Reformatted "Serving on " message for easier consumption
This commit is contained in:
Mathieu David 2017-05-27 11:54:12 +02:00 committed by GitHub
commit 316bcf7b5d
1 changed files with 3 additions and 2 deletions

View File

@ -270,10 +270,11 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
std::thread::spawn(move || { ws_server.listen(&*ws_address).unwrap(); });
println!("\nServing on {}", address);
let serving_url = format!("http://{}", address);
println!("\nServing on: {}", serving_url);
if open_browser {
open(format!("http://{}", address));
open(serving_url);
}
trigger_on_change(&mut book, move |path, book| {