Reformatted "Serving on " message for easier consumption

Now we have: `Serving on: http://localhost:3000`
This commit is contained in:
Michal Budzynski 2017-05-27 11:34:46 +02:00
parent 4364ec3a7b
commit 453b97bec0
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| {