mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -83,7 +83,7 @@ impl LintPass for InheritancePass {
|
|||
cx.sess().span_note(*span, "Bare DOM struct found here");
|
||||
}
|
||||
}
|
||||
} else if dom_spans.len() == 0 {
|
||||
} else if dom_spans.is_empty() {
|
||||
cx.span_lint(INHERITANCE_INTEGRITY, cx.tcx.map.expect_item(id).span,
|
||||
"This DOM struct has no reflector or parent DOM struct");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue