Skip to content

Commit f07ce55

Browse files
committed
Add return
1 parent 1879d17 commit f07ce55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ pub fn maybe_lint_level_root(tcx: TyCtxt<'_, '_, '_>, id: hir::HirId) -> bool {
725725
let attrs = tcx.hir().attrs_by_hir_id(id);
726726
for attr in attrs {
727727
if Level::from_str(&attr.name().as_str()).is_some() {
728-
true;
728+
return true;
729729
}
730730
}
731731
false

0 commit comments

Comments
 (0)