diff --git a/crates/mun_language_server/src/handlers.rs b/crates/mun_language_server/src/handlers.rs index f551ea7ad..ad00dc740 100644 --- a/crates/mun_language_server/src/handlers.rs +++ b/crates/mun_language_server/src/handlers.rs @@ -77,6 +77,7 @@ mod tests { #[test] fn test_build_hierarchy_from_flat_list() { + #[allow(deprecated)] let default_symbol = DocumentSymbol { name: "".to_string(), detail: None, diff --git a/crates/mun_language_server/tests/snapshots/initialization__document_symbols.snap.new b/crates/mun_language_server/tests/snapshots/initialization__document_symbols.snap.new deleted file mode 100644 index 224376f01..000000000 --- a/crates/mun_language_server/tests/snapshots/initialization__document_symbols.snap.new +++ /dev/null @@ -1,98 +0,0 @@ ---- -source: crates/mun_language_server/tests/initialization.rs -expression: symbols ---- -Some( - Nested( - [ - DocumentSymbol { - name: "Bar", - detail: Some( - "Foo", - ), - kind: TypeParameter, - tags: None, - deprecated: None, - range: Range { - start: Position { - line: 2, - character: 0, - }, - end: Position { - line: 2, - character: 15, - }, - }, - selection_range: Range { - start: Position { - line: 2, - character: 5, - }, - end: Position { - line: 2, - character: 8, - }, - }, - children: None, - }, - DocumentSymbol { - name: "Foo", - detail: None, - kind: Struct, - tags: None, - deprecated: None, - range: Range { - start: Position { - line: 1, - character: 0, - }, - end: Position { - line: 1, - character: 13, - }, - }, - selection_range: Range { - start: Position { - line: 1, - character: 7, - }, - end: Position { - line: 1, - character: 10, - }, - }, - children: None, - }, - DocumentSymbol { - name: "main", - detail: Some( - "fn() -> i32", - ), - kind: Function, - tags: None, - deprecated: None, - range: Range { - start: Position { - line: 0, - character: 0, - }, - end: Position { - line: 0, - character: 19, - }, - }, - selection_range: Range { - start: Position { - line: 0, - character: 3, - }, - end: Position { - line: 0, - character: 7, - }, - }, - children: None, - }, - ], - ), -)