Add return
This commit is contained in:
parent
1879d17f08
commit
f07ce55d0f
1 changed files with 1 additions and 1 deletions
|
@ -725,7 +725,7 @@ pub fn maybe_lint_level_root(tcx: TyCtxt<'_, '_, '_>, id: hir::HirId) -> bool {
|
||||||
let attrs = tcx.hir().attrs_by_hir_id(id);
|
let attrs = tcx.hir().attrs_by_hir_id(id);
|
||||||
for attr in attrs {
|
for attr in attrs {
|
||||||
if Level::from_str(&attr.name().as_str()).is_some() {
|
if Level::from_str(&attr.name().as_str()).is_some() {
|
||||||
true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue