From 1fac9caec14b00f3ef23ace38eb1d1d7d7f0e3f3 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 10 Jun 2021 10:57:32 -0700 Subject: [PATCH] Fix compiling tide example --- examples/hot_reload_tide/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/hot_reload_tide/src/main.rs b/examples/hot_reload_tide/src/main.rs index 7d1cf806..71f9acfd 100644 --- a/examples/hot_reload_tide/src/main.rs +++ b/examples/hot_reload_tide/src/main.rs @@ -8,6 +8,7 @@ use notify::{ event::ModifyKind, Error, Event, EventKind, RecommendedWatcher, RecursiveMode, Watcher, }; +use std::path::Path; use std::sync::{Arc, Mutex}; use tide::{Body, Response}; @@ -43,7 +44,7 @@ async fn main() -> tide::Result<()> { } })?; - watcher.watch(CONFIG_PATH, RecursiveMode::Recursive)?; + watcher.watch(Path::new(CONFIG_PATH), RecursiveMode::Recursive)?; // We set up a web server using [Tide](https://github.com/http-rs/tide) let mut app = tide::with_state(config);