We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Iterator::any
1 parent b0f7aac commit c8d915eCopy full SHA for c8d915e
crates/hir_def/src/attr.rs
@@ -292,10 +292,10 @@ impl Attrs {
292
}
293
294
pub fn has_doc_hidden(&self) -> bool {
295
- self.by_key("doc").tt_values().find(|tt| {
+ self.by_key("doc").tt_values().any(|tt| {
296
tt.delimiter_kind() == Some(DelimiterKind::Parenthesis) &&
297
matches!(&*tt.token_trees, [tt::TokenTree::Leaf(tt::Leaf::Ident(ident))] if ident.text == "hidden")
298
- }).is_some()
+ })
299
300
301
crates/ide_completion/src/completions/dot.rs
@@ -231,7 +231,7 @@ impl A {
231
expect![[r#"
232
fd pub_field u32
233
me pub_method() fn(&self)
234
- "#]]
+ "#]],
235
)
236
237
0 commit comments