diff options
Diffstat (limited to 'crates/ra_ide_api/src/display/structure.rs')
-rw-r--r-- | crates/ra_ide_api/src/display/structure.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/display/structure.rs b/crates/ra_ide_api/src/display/structure.rs index cae49567f..8815df747 100644 --- a/crates/ra_ide_api/src/display/structure.rs +++ b/crates/ra_ide_api/src/display/structure.rs | |||
@@ -79,7 +79,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> { | |||
79 | node_range: node.syntax().text_range(), | 79 | node_range: node.syntax().text_range(), |
80 | kind: node.syntax().kind(), | 80 | kind: node.syntax().kind(), |
81 | detail, | 81 | detail, |
82 | deprecated: node.attrs().filter_map(|x| x.as_named()).any(|x| x == "deprecated"), | 82 | deprecated: node.attrs().filter_map(|x| x.simple_name()).any(|x| x == "deprecated"), |
83 | }) | 83 | }) |
84 | } | 84 | } |
85 | 85 | ||