diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-03-05 19:39:34 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-03-05 19:39:34 +0100 |
| commit | f07ce55d0f75d7a76c20e58e3639cdffbe770aeb (patch) | |
| tree | c6664d8591e8a1203f0650c5277c4f081462e06a /src | |
| parent | 1879d17f082e58500c84529815a2a8ba955af999 (diff) | |
| download | rust-f07ce55d0f75d7a76c20e58e3639cdffbe770aeb.tar.gz rust-f07ce55d0f75d7a76c20e58e3639cdffbe770aeb.zip | |
Add `return`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/lint/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/mod.rs b/src/librustc/lint/mod.rs index b3fc5612ba5..c01b0ae2ccc 100644 --- a/src/librustc/lint/mod.rs +++ b/src/librustc/lint/mod.rs @@ -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 |
