diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-05-23 19:49:53 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-05-24 00:01:49 -0400 |
commit | 8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch) | |
tree | 2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/plugins/lints/inheritance_integrity.rs | |
parent | 7561f7b83f27811683c1e724d75a935573a72813 (diff) | |
download | servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.tar.gz servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.zip |
Reduce max line length from 150 to 120 characters
Part of https://github.com/servo/servo/issues/6041
Diffstat (limited to 'components/plugins/lints/inheritance_integrity.rs')
-rw-r--r-- | components/plugins/lints/inheritance_integrity.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/plugins/lints/inheritance_integrity.rs b/components/plugins/lints/inheritance_integrity.rs index d8cf22a102b..3f1d596693d 100644 --- a/components/plugins/lints/inheritance_integrity.rs +++ b/components/plugins/lints/inheritance_integrity.rs @@ -22,7 +22,8 @@ impl LintPass for InheritancePass { lint_array!(INHERITANCE_INTEGRITY) } - fn check_struct_def(&mut self, cx: &Context, def: &ast::StructDef, _i: ast::Ident, _gen: &ast::Generics, id: ast::NodeId) { + fn check_struct_def(&mut self, cx: &Context, def: &ast::StructDef, _i: ast::Ident, + _gen: &ast::Generics, id: ast::NodeId) { // Lints are run post expansion, so it's fine to use // #[_dom_struct_marker] here without also checking for #[dom_struct] if ty::has_attr(cx.tcx, ast_util::local_def(id), "_dom_struct_marker") { @@ -32,7 +33,8 @@ impl LintPass for InheritancePass { if match_lang_ty(cx, &*f.node.ty, "reflector") { if ctr > 0 { cx.span_lint(INHERITANCE_INTEGRITY, f.span, - "The Reflector should be the first field of the DOM struct"); + "The Reflector should be the first field of the DOM \ + struct"); } return true; } |