mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
60a901328a
commit
394f816343
5 changed files with 50 additions and 11 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue