mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Bump notify
This commit is contained in:
parent
c3bb7bfc28
commit
e5d3ac58b3
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1001,9 +1001,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "notify"
|
name = "notify"
|
||||||
version = "5.0.0-pre.15"
|
version = "5.0.0-pre.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "553f9844ad0b0824605c20fb55a661679782680410abfb1a8144c2e7e437e7a7"
|
checksum = "530f6314d6904508082f4ea424a0275cf62d341e118b313663f266429cb19693"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
|
@ -14,7 +14,7 @@ tracing = "0.1.35"
|
|||||||
jod-thread = "0.1.2"
|
jod-thread = "0.1.2"
|
||||||
walkdir = "2.3.2"
|
walkdir = "2.3.2"
|
||||||
crossbeam-channel = "0.5.5"
|
crossbeam-channel = "0.5.5"
|
||||||
notify = "=5.0.0-pre.15"
|
notify = "=5.0.0-pre.16"
|
||||||
|
|
||||||
vfs = { path = "../vfs", version = "0.0.0" }
|
vfs = { path = "../vfs", version = "0.0.0" }
|
||||||
paths = { path = "../paths", version = "0.0.0" }
|
paths = { path = "../paths", version = "0.0.0" }
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
use crossbeam_channel::{never, select, unbounded, Receiver, Sender};
|
use crossbeam_channel::{never, select, unbounded, Receiver, Sender};
|
||||||
use notify::{RecommendedWatcher, RecursiveMode, Watcher};
|
use notify::{Config, RecommendedWatcher, RecursiveMode, Watcher};
|
||||||
use paths::{AbsPath, AbsPathBuf};
|
use paths::{AbsPath, AbsPathBuf};
|
||||||
use vfs::loader;
|
use vfs::loader;
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
@ -91,9 +91,12 @@ impl NotifyActor {
|
|||||||
self.watcher = None;
|
self.watcher = None;
|
||||||
if !config.watch.is_empty() {
|
if !config.watch.is_empty() {
|
||||||
let (watcher_sender, watcher_receiver) = unbounded();
|
let (watcher_sender, watcher_receiver) = unbounded();
|
||||||
let watcher = log_notify_error(RecommendedWatcher::new(move |event| {
|
let watcher = log_notify_error(RecommendedWatcher::new(
|
||||||
watcher_sender.send(event).unwrap();
|
move |event| {
|
||||||
}));
|
watcher_sender.send(event).unwrap();
|
||||||
|
},
|
||||||
|
Config::default(),
|
||||||
|
));
|
||||||
self.watcher = watcher.map(|it| (it, watcher_receiver));
|
self.watcher = watcher.map(|it| (it, watcher_receiver));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user