aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/traits.rs
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_syntax/src/ast/traits.rs
parent71efdaa6364142b359c59659ec10f35a1e53b5d2 (diff)
Fix API of Attr
Diffstat (limited to 'crates/ra_syntax/src/ast/traits.rs')
-rw-r--r--crates/ra_syntax/src/ast/traits.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/traits.rs b/crates/ra_syntax/src/ast/traits.rs
index c3e676d4c..f275a4955 100644
--- a/crates/ra_syntax/src/ast/traits.rs
+++ b/crates/ra_syntax/src/ast/traits.rs
@@ -99,7 +99,7 @@ pub trait AttrsOwner: AstNode {
99 children(self) 99 children(self)
100 } 100 }
101 fn has_atom_attr(&self, atom: &str) -> bool { 101 fn has_atom_attr(&self, atom: &str) -> bool {
102 self.attrs().filter_map(|x| x.as_atom()).any(|x| x == atom) 102 self.attrs().filter_map(|x| x.as_simple_atom()).any(|x| x == atom)
103 } 103 }
104} 104}
105 105