From 07245b2a74d28f612b99eea180283ba7b74207a0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 4 Mar 2022 22:58:19 -0500 Subject: upgrade to notify 5 to fix some duplicated deps --- src/shell/inputs/git.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/shell') diff --git a/src/shell/inputs/git.rs b/src/shell/inputs/git.rs index 1c1c92d..dbae1c4 100644 --- a/src/shell/inputs/git.rs +++ b/src/shell/inputs/git.rs @@ -33,11 +33,8 @@ impl Handler { let (sync_watch_w, sync_watch_r) = std::sync::mpsc::channel(); let (watch_w, mut watch_r) = tokio::sync::mpsc::unbounded_channel(); - let mut watcher = notify::RecommendedWatcher::new( - sync_watch_w, - std::time::Duration::from_millis(100), - ) - .unwrap(); + let mut watcher = + notify::recommended_watcher(sync_watch_w).unwrap(); watcher .watch(&dir, notify::RecursiveMode::Recursive) .unwrap(); -- cgit v1.2.3-54-g00ecf