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]]
|
||||
name = "notify"
|
||||
version = "5.0.0-pre.15"
|
||||
version = "5.0.0-pre.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "553f9844ad0b0824605c20fb55a661679782680410abfb1a8144c2e7e437e7a7"
|
||||
checksum = "530f6314d6904508082f4ea424a0275cf62d341e118b313663f266429cb19693"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"crossbeam-channel",
|
||||
|
@ -14,7 +14,7 @@ tracing = "0.1.35"
|
||||
jod-thread = "0.1.2"
|
||||
walkdir = "2.3.2"
|
||||
crossbeam-channel = "0.5.5"
|
||||
notify = "=5.0.0-pre.15"
|
||||
notify = "=5.0.0-pre.16"
|
||||
|
||||
vfs = { path = "../vfs", version = "0.0.0" }
|
||||
paths = { path = "../paths", version = "0.0.0" }
|
||||
|
@ -12,7 +12,7 @@
|
||||
use std::fs;
|
||||
|
||||
use crossbeam_channel::{never, select, unbounded, Receiver, Sender};
|
||||
use notify::{RecommendedWatcher, RecursiveMode, Watcher};
|
||||
use notify::{Config, RecommendedWatcher, RecursiveMode, Watcher};
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
use vfs::loader;
|
||||
use walkdir::WalkDir;
|
||||
@ -91,9 +91,12 @@ fn run(mut self, inbox: Receiver<Message>) {
|
||||
self.watcher = None;
|
||||
if !config.watch.is_empty() {
|
||||
let (watcher_sender, watcher_receiver) = unbounded();
|
||||
let watcher = log_notify_error(RecommendedWatcher::new(move |event| {
|
||||
watcher_sender.send(event).unwrap();
|
||||
}));
|
||||
let watcher = log_notify_error(RecommendedWatcher::new(
|
||||
move |event| {
|
||||
watcher_sender.send(event).unwrap();
|
||||
},
|
||||
Config::default(),
|
||||
));
|
||||
self.watcher = watcher.map(|it| (it, watcher_receiver));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user