Update inline_fn_without_body.rs

This commit is contained in:
Oliver Schneider 2018-05-04 10:17:30 +02:00 committed by GitHub
parent 00b549ad40
commit 8c9bb89608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
fn check_attrs(cx: &LateContext, name: &Name, attrs: &[Attribute]) {
for attr in attrs {
if attr.name() == "inline" {
if attr.name() != "inline" {
continue;
}