Disallow lines that span more than 160 columns.

The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
This commit is contained in:
Ms2ger 2015-01-19 13:40:29 +01:00
parent 60a901328a
commit 394f816343
5 changed files with 50 additions and 11 deletions

View file

@ -111,7 +111,9 @@ impl Element {
create_element(name, prefix, document, creator)
}
pub fn new_inherited(type_id: ElementTypeId, local_name: DOMString, namespace: Namespace, prefix: Option<DOMString>, document: JSRef<Document>) -> Element {
pub fn new_inherited(type_id: ElementTypeId, local_name: DOMString,
namespace: Namespace, prefix: Option<DOMString>,
document: JSRef<Document>) -> Element {
Element {
node: Node::new_inherited(NodeTypeId::Element(type_id), document),
local_name: Atom::from_slice(local_name.as_slice()),