summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-03 09:37:37 +0000
committerbors <bors@rust-lang.org>2019-04-03 09:37:37 +0000
commitfbd0ccbd5b7c86846e2488bf4d8dce0b1b90b04e (patch)
treebca531c6656c3c16affab2af2e3f0406a7f4efd5 /src
parent8c008a0e7d735d877bde07e7451afa555513e998 (diff)
parent022921168dc65283660a6f418c42b977c32d1cad (diff)
Auto merge of #134 - rust-lang:fix/windows-paths, r=komaeda
fix watch command path execution @hades32 @guttume could you test whether this works on windows by checking out the branch locally and running `cargo run watch`?
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 50ac78b..eca1a03 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -88,7 +88,7 @@ fn watch() -> notify::Result<()> {
let (tx, rx) = channel();
let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(2))?;
- watcher.watch("./exercises", RecursiveMode::Recursive)?;
+ watcher.watch(Path::new("./exercises"), RecursiveMode::Recursive)?;
let _ignored = verify(None);