Filesystem event watching is now cross-platform

This commit is contained in:
Pantonshire committed 2022-05-28 22:27:59 +01:00
1 parent 207032382d
commit 70fb5ff675
2 files changed
+9 -11

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ use std::{
use miette::{IntoDiagnostic, WrapErr};
use notify::{
DebouncedEvent,
FsEventWatcher,
RecommendedWatcher,
RecursiveMode,
Watcher,
watcher,
@@ -17,7 +17,7 @@ use tracing::info;
pub fn start_watching(
tx: mpsc::Sender<DebouncedEvent>,
watch_path: &Path
) -> miette::Result<FsEventWatcher>
) -> miette::Result<RecommendedWatcher>
{
let mut watcher = watcher(tx, Duration::from_secs(2))
.into_diagnostic()