is_{some,ok}_and
This commit is contained in:
parent
fe3038f263
commit
079a2e865f
8 changed files with 21 additions and 13 deletions
|
@ -736,7 +736,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
|||
if attr.has_name(sym::doc)
|
||||
&& attr
|
||||
.meta_item_list()
|
||||
.map_or(false, |l| ast::attr::list_contains_name(&l, sym::hidden))
|
||||
.is_some_and(|l| ast::attr::list_contains_name(&l, sym::hidden))
|
||||
{
|
||||
self.insert(LintId::of(MISSING_DOCS), (Level::Allow, LintLevelSource::Default));
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue