From 022921168dc65283660a6f418c42b977c32d1cad Mon Sep 17 00:00:00 2001 From: liv <819880950@qq.com> Date: Wed, 27 Mar 2019 10:58:56 +0100 Subject: [PATCH] fix watch command path execution --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);