File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -312,12 +312,7 @@ impl LspContext for Context {
312
312
LspUrl :: File ( path) => match path. is_absolute ( ) {
313
313
true => match fs:: read_to_string ( path) {
314
314
Ok ( contents) => Ok ( Some ( contents) ) ,
315
- Err ( e)
316
- if e. kind ( ) == io:: ErrorKind :: NotFound
317
- || e. kind ( ) == io:: ErrorKind :: NotADirectory =>
318
- {
319
- Ok ( None )
320
- }
315
+ Err ( e) if e. kind ( ) == io:: ErrorKind :: NotFound => Ok ( None ) ,
321
316
Err ( e) => Err ( e. into ( ) ) ,
322
317
} ,
323
318
false => Err ( ContextError :: NotAbsolute ( uri. clone ( ) ) . into ( ) ) ,
Original file line number Diff line number Diff line change 17
17
18
18
// Features we use
19
19
#![ feature( box_syntax) ]
20
- #![ feature( io_error_more) ]
21
20
//
22
21
// Plugins
23
22
#![ cfg_attr( feature = "gazebo_lint" , feature( plugin) ) ]
You can’t perform that action at this time.
0 commit comments