From ca982a268fa04118b84f7a6976542639b39be0fa Mon Sep 17 00:00:00 2001 From: Vladislav Supalov Date: Tue, 2 Oct 2018 11:31:18 +0200 Subject: [PATCH] Replace hard-coded directory slash in serve output (#457) * Replace hard-coded directory slash in serve output --- src/cmd/serve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 92481e07..6dc56cd4 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -24,7 +24,7 @@ use std::env; use std::fs::{remove_dir_all, File}; use std::io::{self, Read}; -use std::path::{Path, PathBuf}; +use std::path::{Path, PathBuf, MAIN_SEPARATOR}; use std::sync::mpsc::channel; use std::time::{Instant, Duration}; use std::thread; @@ -229,7 +229,7 @@ pub fn serve(interface: &str, port: &str, output_dir: &str, base_url: &str, conf 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"); // Delete the output folder on ctrl+C