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/domrect.rs | |
parent | ceb72e54e469bb3811fb641e7c38f476781a5720 (diff) | |
download | servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.tar.gz servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.zip |
Rustfmt some of script.
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r-- | components/script/dom/domrect.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index aa4758d2b89..086e21882c6 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -24,11 +24,17 @@ impl DOMRect { } pub fn new(global: GlobalRef, x: f64, y: f64, width: f64, height: f64) -> Root<DOMRect> { - reflect_dom_object(box DOMRect::new_inherited(x, y, width, height), global, DOMRectBinding::Wrap) + reflect_dom_object(box DOMRect::new_inherited(x, y, width, height), + global, + DOMRectBinding::Wrap) } pub fn Constructor(global: GlobalRef, - x: f64, y: f64, width: f64, height: f64) -> Fallible<Root<DOMRect>> { + x: f64, + y: f64, + width: f64, + height: f64) + -> Fallible<Root<DOMRect>> { Ok(DOMRect::new(global, x, y, width, height)) } } |