mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Bump deps
This commit is contained in:
parent
2e45e47c83
commit
d9ec9d95c5
3 changed files with 44 additions and 26 deletions
|
@ -83,7 +83,7 @@ impl NotifyActor {
|
|||
self.watcher = None;
|
||||
if !config.watch.is_empty() {
|
||||
let (watcher_sender, watcher_receiver) = unbounded();
|
||||
let watcher = log_notify_error(Watcher::new_immediate(move |event| {
|
||||
let watcher = log_notify_error(RecommendedWatcher::new(move |event| {
|
||||
watcher_sender.send(event).unwrap()
|
||||
}));
|
||||
self.watcher = watcher.map(|it| (it, watcher_receiver));
|
||||
|
@ -214,7 +214,7 @@ impl NotifyActor {
|
|||
|
||||
fn watch(&mut self, path: AbsPathBuf) {
|
||||
if let Some((watcher, _)) = &mut self.watcher {
|
||||
log_notify_error(watcher.watch(&path, RecursiveMode::NonRecursive));
|
||||
log_notify_error(watcher.watch(path.as_ref(), RecursiveMode::NonRecursive));
|
||||
}
|
||||
}
|
||||
fn send(&mut self, msg: loader::Message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue