diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-11-17 16:52:17 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-11-18 11:14:05 +0100 |
commit | 0c61be7a577b99dc138eb6a2e46fb9276df0870d (patch) | |
tree | 8188a7ed8f86ce1fab95f7aa4ff5c43819e4520d /components/script/dom/comment.rs | |
parent | ceb72e54e469bb3811fb641e7c38f476781a5720 (diff) | |
download | servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.tar.gz servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.zip |
Rustfmt some of script.
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r-- | components/script/dom/comment.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index 3bed2a647dd..093b1263b9e 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -21,13 +21,14 @@ pub struct Comment { impl Comment { fn new_inherited(text: DOMString, document: &Document) -> Comment { Comment { - characterdata: CharacterData::new_inherited(text, document) + characterdata: CharacterData::new_inherited(text, document), } } pub fn new(text: DOMString, document: &Document) -> Root<Comment> { Node::reflect_node(box Comment::new_inherited(text, document), - document, CommentBinding::Wrap) + document, + CommentBinding::Wrap) } pub fn Constructor(global: GlobalRef, data: DOMString) -> Fallible<Root<Comment>> { |