Skip to content

Commit

Permalink
Add return
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 5, 2019
1 parent 1879d17 commit f07ce55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
for attr in attrs {
if Level::from_str(&attr.name().as_str()).is_some() {
true;
return true;
}
}
false
Expand Down

0 comments on commit f07ce55

Please sign in to comment.