Skip to content

Commit c8d915e

Browse files
Fix formatting and use Iterator::any
1 parent b0f7aac commit c8d915e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/hir_def/src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ impl Attrs {
292292
}
293293

294294
pub fn has_doc_hidden(&self) -> bool {
295-
self.by_key("doc").tt_values().find(|tt| {
295+
self.by_key("doc").tt_values().any(|tt| {
296296
tt.delimiter_kind() == Some(DelimiterKind::Parenthesis) &&
297297
matches!(&*tt.token_trees, [tt::TokenTree::Leaf(tt::Leaf::Ident(ident))] if ident.text == "hidden")
298-
}).is_some()
298+
})
299299
}
300300
}
301301

crates/ide_completion/src/completions/dot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl A {
231231
expect![[r#"
232232
fd pub_field u32
233233
me pub_method() fn(&self)
234-
"#]]
234+
"#]],
235235
)
236236
}
237237

0 commit comments

Comments
 (0)