aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/comment.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-17 16:52:17 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-18 11:14:05 +0100
commit0c61be7a577b99dc138eb6a2e46fb9276df0870d (patch)
tree8188a7ed8f86ce1fab95f7aa4ff5c43819e4520d /components/script/dom/comment.rs
parentceb72e54e469bb3811fb641e7c38f476781a5720 (diff)
downloadservo-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.rs5
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>> {