File tree Expand file tree Collapse file tree 4 files changed +46
-28
lines changed
ide_completion/src/completions Expand file tree Collapse file tree 4 files changed +46
-28
lines changed Original file line number Diff line number Diff line change 1
1
//! Completes lifetimes and labels.
2
2
//!
3
3
//! These completions work a bit differently in that they are only shown when what the user types
4
- //! has a `'` preceding it, as our fake syntax tree is invalid otherwise(due to us not inserting a
5
- //! lifetime but an ident for obvious reasons).
4
+ //! has a `'` preceding it, as our fake syntax tree is invalid otherwise (due to us not inserting
5
+ //! a lifetime but an ident for obvious reasons).
6
6
//! Due to this all the tests for lifetimes and labels live in this module for the time being as
7
7
//! there is no value in lifting these out into the outline module test since they will either not
8
8
//! show up for normal completions, or they won't show completions other than lifetimes depending
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ path = "src/bin/main.rs"
20
20
anyhow = " 1.0.26"
21
21
crossbeam-channel = " 0.5.0"
22
22
dissimilar = " 1.0.2"
23
- env_logger = { version = " 0.8.1 " , default-features = false }
23
+ env_logger = { version = " 0.9 " , default-features = false }
24
24
itertools = " 0.10.0"
25
25
jod-thread = " 0.1.0"
26
26
log = " 0.4.8"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl NotifyActor {
83
83
self . watcher = None ;
84
84
if !config. watch . is_empty ( ) {
85
85
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| {
87
87
watcher_sender. send ( event) . unwrap ( )
88
88
} ) ) ;
89
89
self . watcher = watcher. map ( |it| ( it, watcher_receiver) ) ;
@@ -214,7 +214,7 @@ impl NotifyActor {
214
214
215
215
fn watch ( & mut self , path : AbsPathBuf ) {
216
216
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 ) ) ;
218
218
}
219
219
}
220
220
fn send ( & mut self , msg : loader:: Message ) {
You can’t perform that action at this time.
0 commit comments