diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-03-04 22:58:19 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-03-04 22:58:19 -0500 |
commit | 07245b2a74d28f612b99eea180283ba7b74207a0 (patch) | |
tree | f3cbb5ab15c9a00ee83b84b75c089ce35dd2dd3b /src | |
parent | 85514ee5187b58d5cbae5b0631aa2d0d29cbf268 (diff) | |
download | nbsh-07245b2a74d28f612b99eea180283ba7b74207a0.tar.gz nbsh-07245b2a74d28f612b99eea180283ba7b74207a0.zip |
upgrade to notify 5
to fix some duplicated deps
Diffstat (limited to 'src')
-rw-r--r-- | src/shell/inputs/git.rs | 7 |
1 files changed, 2 insertions, 5 deletions
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(); |