diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2022-09-16 19:11:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 19:11:30 -0400 |
commit | 684841a18c90029df404e02fed7509bb0571053a (patch) | |
tree | a350038fcd60b90651b7aeea63deff3f9096a013 /cli/file_watcher.rs | |
parent | 38280990dae50f19c4e52eac5de2054e42f455e4 (diff) |
upgrade deps (#15914)
Diffstat (limited to 'cli/file_watcher.rs')
-rw-r--r-- | cli/file_watcher.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/file_watcher.rs b/cli/file_watcher.rs index 6c8a142a6..78a5e7a82 100644 --- a/cli/file_watcher.rs +++ b/cli/file_watcher.rs @@ -10,7 +10,6 @@ use deno_runtime::fmt_errors::format_js_error; use log::info; use notify::event::Event as NotifyEvent; use notify::event::EventKind; -use notify::Config; use notify::Error as NotifyError; use notify::RecommendedWatcher; use notify::RecursiveMode; @@ -344,8 +343,8 @@ where fn new_watcher( sender: Arc<mpsc::UnboundedSender<Vec<PathBuf>>>, ) -> Result<RecommendedWatcher, AnyError> { - let mut watcher: RecommendedWatcher = - Watcher::new(move |res: Result<NotifyEvent, NotifyError>| { + let watcher = Watcher::new( + move |res: Result<NotifyEvent, NotifyError>| { if let Ok(event) = res { if matches!( event.kind, @@ -359,9 +358,9 @@ fn new_watcher( sender.send(paths).unwrap(); } } - })?; - - watcher.configure(Config::PreciseEvents(true)).unwrap(); + }, + Default::default(), + )?; Ok(watcher) } |