Rustfmt some of script.

This commit is contained in:
Ms2ger 2015-11-17 16:52:17 +01:00
parent ceb72e54e4
commit 0c61be7a57
50 changed files with 1499 additions and 885 deletions

View file

@ -18,7 +18,8 @@ pub struct DOMRectList {
impl DOMRectList {
fn new_inherited<T>(rects: T) -> DOMRectList
where T: Iterator<Item=Root<DOMRect>> {
where T: Iterator<Item = Root<DOMRect>>
{
DOMRectList {
reflector_: Reflector::new(),
rects: rects.map(|r| JS::from_rooted(&r)).collect(),
@ -26,9 +27,11 @@ impl DOMRectList {
}
pub fn new<T>(window: &Window, rects: T) -> Root<DOMRectList>
where T: Iterator<Item=Root<DOMRect>> {
where T: Iterator<Item = Root<DOMRect>>
{
reflect_dom_object(box DOMRectList::new_inherited(rects),
GlobalRef::Window(window), DOMRectListBinding::Wrap)
GlobalRef::Window(window),
DOMRectListBinding::Wrap)
}
}