diff options
| author | bors <bors@rust-lang.org> | 2019-04-03 09:37:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-04-03 09:37:37 +0000 |
| commit | fbd0ccbd5b7c86846e2488bf4d8dce0b1b90b04e (patch) | |
| tree | bca531c6656c3c16affab2af2e3f0406a7f4efd5 /src/main.rs | |
| parent | 8c008a0e7d735d877bde07e7451afa555513e998 (diff) | |
| parent | 022921168dc65283660a6f418c42b977c32d1cad (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/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
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); |
