From 0e8ac3fdac83227d4bbc8d1d74ea021fa627280a Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 28 May 2023 23:25:41 -0400 Subject: Formatting. --- components/script/dom/comment.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'components/script/dom/comment.rs') diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index 96df242a5df..4c5ca9d488e 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -26,12 +26,24 @@ impl Comment { } } - pub fn new(text: DOMString, document: &Document, proto: Option) -> DomRoot { - Node::reflect_node_with_proto(Box::new(Comment::new_inherited(text, document)), document, proto) + pub fn new( + text: DOMString, + document: &Document, + proto: Option, + ) -> DomRoot { + Node::reflect_node_with_proto( + Box::new(Comment::new_inherited(text, document)), + document, + proto, + ) } #[allow(non_snake_case)] - pub fn Constructor(window: &Window, proto: Option, data: DOMString) -> Fallible> { + pub fn Constructor( + window: &Window, + proto: Option, + data: DOMString, + ) -> Fallible> { let document = window.Document(); Ok(Comment::new(data, &document, proto)) } -- cgit v1.2.3