aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display
diff options
context:
space:
mode:
authoruHOOCCOOHu <[email protected]>2019-09-29 22:15:03 +0100
committeruHOOCCOOHu <[email protected]>2019-09-30 09:17:53 +0100
commit5a4b4f507e9b90bfe41b451763868cba0a70c392 (patch)
tree7e136a69aa5bf67a2dacf74fdee189558970ff20 /crates/ra_ide_api/src/display
parent71efdaa6364142b359c59659ec10f35a1e53b5d2 (diff)
Fix API of Attr
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r--crates/ra_ide_api/src/display/structure.rs2
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 be042ed17..38a56d752 100644
--- a/crates/ra_ide_api/src/display/structure.rs
+++ b/crates/ra_ide_api/src/display/structure.rs
@@ -77,7 +77,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
77 node_range: node.syntax().text_range(), 77 node_range: node.syntax().text_range(),
78 kind: node.syntax().kind(), 78 kind: node.syntax().kind(),
79 detail, 79 detail,
80 deprecated: node.attrs().filter_map(|x| x.as_named()).any(|x| x == "deprecated"), 80 deprecated: node.attrs().filter_map(|x| x.simple_name()).any(|x| x == "deprecated"),
81 }) 81 })
82 } 82 }
83 83