Replace hard-coded directory slash in serve output (#457)

* Replace hard-coded directory slash in serve output
This commit is contained in:
Vladislav Supalov 2018-10-02 11:31:18 +02:00 committed by Vincent Prouillet
parent e7efdfa4ca
commit ca982a268f

View file

@ -24,7 +24,7 @@
use std::env; use std::env;
use std::fs::{remove_dir_all, File}; use std::fs::{remove_dir_all, File};
use std::io::{self, Read}; use std::io::{self, Read};
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf, MAIN_SEPARATOR};
use std::sync::mpsc::channel; use std::sync::mpsc::channel;
use std::time::{Instant, Duration}; use std::time::{Instant, Duration};
use std::thread; use std::thread;
@ -229,7 +229,7 @@ pub fn serve(interface: &str, port: &str, output_dir: &str, base_url: &str, conf
watchers.push("sass"); watchers.push("sass");
} }
println!("Listening for changes in {}/{{{}}}", pwd.display(), watchers.join(", ")); println!("Listening for changes in {}{}{{{}}}", pwd.display(), MAIN_SEPARATOR, watchers.join(", "));
println!("Press Ctrl+C to stop\n"); println!("Press Ctrl+C to stop\n");
// Delete the output folder on ctrl+C // Delete the output folder on ctrl+C