Update notify crate version

This commit is contained in:
Patrick Förster 2022-01-21 21:00:52 +01:00
parent ab5ddfe7a7
commit bf117bcfe3
3 changed files with 25 additions and 4 deletions

25
Cargo.lock generated
View file

@ -846,6 +846,26 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "kqueue"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "058a107a784f8be94c7d35c1300f4facced2e93d2fbe5b1452b44e905ddca4a9"
dependencies = [
"kqueue-sys",
"libc",
]
[[package]]
name = "kqueue-sys"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8367585489f01bc55dd27404dcf56b95e6da061a256a666ab23be9ba96a2e587"
dependencies = [
"bitflags",
"libc",
]
[[package]]
name = "lasso"
version = "0.5.1"
@ -1090,15 +1110,16 @@ dependencies = [
[[package]]
name = "notify"
version = "5.0.0-pre.10"
version = "5.0.0-pre.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51f18203a26893ca1d3526cf58084025d5639f91c44f8b70ab3b724f60e819a0"
checksum = "245d358380e2352c2d020e8ee62baac09b3420f1f6c012a31326cfced4ad487d"
dependencies = [
"bitflags",
"crossbeam-channel",
"filetime",
"fsevent-sys",
"inotify",
"kqueue",
"libc",
"mio",
"walkdir",

View file

@ -55,7 +55,7 @@ logos = "0.12.0"
lsp-server = "0.5"
lsp-types = "0.90.0"
multimap = "0.8.3"
notify = "5.0.0-pre.10"
notify = "5.0.0-pre.13"
once_cell = "1.9.0"
petgraph = "0.6.0"
rayon = "1.5.1"

View file

@ -32,7 +32,7 @@ where
}
fn create_watcher(workspace: Arc<W>) -> Result<RecommendedWatcher> {
let watcher = Watcher::new_immediate(move |event: notify::Result<notify::Event>| {
let watcher = notify::recommended_watcher(move |event: notify::Result<notify::Event>| {
if let Ok(event) = event {
if event.kind.is_modify() {
for path in event.paths {