Skip to content

Commit

Permalink
Fix compiling tide example
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt authored and 0xpr03 committed Jun 10, 2021
1 parent 5236978 commit 1fac9ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/hot_reload_tide/src/main.rs
Expand Up @@ -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};

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1fac9ca

Please sign in to comment.