Skip to content

Commit 772bc4d

Browse files
bors[bot]lnicola
andauthored
Merge #9686
9686: Bump deps r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 2e45e47 + d9ec9d9 commit 772bc4d

File tree

3 files changed

+44
-26
lines changed

3 files changed

+44
-26
lines changed

Cargo.lock

Lines changed: 41 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rust-analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ path = "src/bin/main.rs"
2020
anyhow = "1.0.26"
2121
crossbeam-channel = "0.5.0"
2222
dissimilar = "1.0.2"
23-
env_logger = { version = "0.8.1", default-features = false }
23+
env_logger = { version = "0.9", default-features = false }
2424
itertools = "0.10.0"
2525
jod-thread = "0.1.0"
2626
log = "0.4.8"

crates/vfs-notify/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl NotifyActor {
8383
self.watcher = None;
8484
if !config.watch.is_empty() {
8585
let (watcher_sender, watcher_receiver) = unbounded();
86-
let watcher = log_notify_error(Watcher::new_immediate(move |event| {
86+
let watcher = log_notify_error(RecommendedWatcher::new(move |event| {
8787
watcher_sender.send(event).unwrap()
8888
}));
8989
self.watcher = watcher.map(|it| (it, watcher_receiver));
@@ -214,7 +214,7 @@ impl NotifyActor {
214214

215215
fn watch(&mut self, path: AbsPathBuf) {
216216
if let Some((watcher, _)) = &mut self.watcher {
217-
log_notify_error(watcher.watch(&path, RecursiveMode::NonRecursive));
217+
log_notify_error(watcher.watch(path.as_ref(), RecursiveMode::NonRecursive));
218218
}
219219
}
220220
fn send(&mut self, msg: loader::Message) {

0 commit comments

Comments
 (0)