File tree Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Expand file tree Collapse file tree 3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ rustc-hash = "1.0"
1414jod-thread = " 0.1.0"
1515walkdir = " 2.3.1"
1616crossbeam-channel = " 0.5.0"
17- notify = " =5.0.0-pre.10 " # check that it builds on NetBSD before upgrading
17+ notify = " =5.0.0-pre.11 "
1818
1919vfs = { path = " ../vfs" , version = " 0.0.0" }
2020paths = { path = " ../paths" , version = " 0.0.0" }
Original file line number Diff line number Diff line change @@ -83,10 +83,9 @@ impl NotifyActor {
8383 self . watcher = None ;
8484 if !config. watch . is_empty ( ) {
8585 let ( watcher_sender, watcher_receiver) = unbounded ( ) ;
86- let watcher =
87- log_notify_error ( RecommendedWatcher :: new_immediate ( move |event| {
88- watcher_sender. send ( event) . unwrap ( )
89- } ) ) ;
86+ let watcher = log_notify_error ( RecommendedWatcher :: new ( move |event| {
87+ watcher_sender. send ( event) . unwrap ( )
88+ } ) ) ;
9089 self . watcher = watcher. map ( |it| ( it, watcher_receiver) ) ;
9190 }
9291
@@ -215,7 +214,7 @@ impl NotifyActor {
215214
216215 fn watch ( & mut self , path : AbsPathBuf ) {
217216 if let Some ( ( watcher, _) ) = & mut self . watcher {
218- log_notify_error ( watcher. watch ( & path, RecursiveMode :: NonRecursive ) ) ;
217+ log_notify_error ( watcher. watch ( path. as_ref ( ) , RecursiveMode :: NonRecursive ) ) ;
219218 }
220219 }
221220 fn send ( & mut self , msg : loader:: Message ) {
You can’t perform that action at this time.
0 commit comments