File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
//! Protocol. The majority of requests are fulfilled by calling into the
3
3
//! `ra_ide` crate.
4
4
5
- #![ allow( deprecated) ]
6
-
7
5
use std:: {
8
6
io:: Write as _,
9
7
process:: { self , Stdio } ,
@@ -260,6 +258,7 @@ pub(crate) fn handle_document_symbol(
260
258
tags. push ( SymbolTag :: Deprecated )
261
259
} ;
262
260
261
+ #[ allow( deprecated) ]
263
262
let doc_symbol = DocumentSymbol {
264
263
name : symbol. label ,
265
264
detail : symbol. detail ,
@@ -305,11 +304,14 @@ pub(crate) fn handle_document_symbol(
305
304
res : & mut Vec < SymbolInformation > ,
306
305
) {
307
306
let mut tags = Vec :: new ( ) ;
307
+
308
+ #[ allow( deprecated) ]
308
309
match symbol. deprecated {
309
310
Some ( true ) => tags. push ( SymbolTag :: Deprecated ) ,
310
311
_ => { }
311
312
}
312
313
314
+ #[ allow( deprecated) ]
313
315
res. push ( SymbolInformation {
314
316
name : symbol. name . clone ( ) ,
315
317
kind : symbol. kind ,
@@ -357,6 +359,8 @@ pub(crate) fn handle_workspace_symbol(
357
359
let mut res = Vec :: new ( ) ;
358
360
for nav in snap. analysis . symbol_search ( query) ? {
359
361
let container_name = nav. container_name . as_ref ( ) . map ( |v| v. to_string ( ) ) ;
362
+
363
+ #[ allow( deprecated) ]
360
364
let info = SymbolInformation {
361
365
name : nav. name . to_string ( ) ,
362
366
kind : to_proto:: symbol_kind ( nav. kind ) ,
You can’t perform that action at this time.
0 commit comments