summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorliv <819880950@qq.com>2019-03-27 10:58:56 +0100
committerliv <819880950@qq.com>2019-03-27 10:58:56 +0100
commit022921168dc65283660a6f418c42b977c32d1cad (patch)
treed5c172d344521fa3c5b1cdb35222236f7161857c /src/main.rs
parentc6765eb3eb4a280ecf6081cee538caf855cd2218 (diff)
fix watch command path execution
Diffstat (limited to 'src/main.rs')
-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);