Fix formatting and use Iterator::any
This commit is contained in:
@@ -292,10 +292,10 @@ impl Attrs {
|
||||
}
|
||||
|
||||
pub fn has_doc_hidden(&self) -> bool {
|
||||
self.by_key("doc").tt_values().find(|tt| {
|
||||
self.by_key("doc").tt_values().any(|tt| {
|
||||
tt.delimiter_kind() == Some(DelimiterKind::Parenthesis) &&
|
||||
matches!(&*tt.token_trees, [tt::TokenTree::Leaf(tt::Leaf::Ident(ident))] if ident.text == "hidden")
|
||||
}).is_some()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ impl A {
|
||||
expect![[r#"
|
||||
fd pub_field u32
|
||||
me pub_method() fn(&self)
|
||||
"#]]
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user