diff options
| author | liv <819880950@qq.com> | 2019-03-27 10:58:56 +0100 |
|---|---|---|
| committer | liv <819880950@qq.com> | 2019-03-27 10:58:56 +0100 |
| commit | 022921168dc65283660a6f418c42b977c32d1cad (patch) | |
| tree | d5c172d344521fa3c5b1cdb35222236f7161857c /src | |
| parent | c6765eb3eb4a280ecf6081cee538caf855cd2218 (diff) | |
fix watch command path execution
Diffstat (limited to 'src')
| -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); |
