aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/build_gecko.rs
diff options
context:
space:
mode:
authorchansuke <chansuke@georepublic.de>2018-09-09 16:24:45 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-09-09 16:24:45 +0200
commit8dab4d659aae9fc4954e3a346bd663f60485de31 (patch)
tree880e57979ded53f072653829a868c86d5075e7ef /components/style/build_gecko.rs
parent31fc6cd565479144b9b0c2d3fff09caad8089df7 (diff)
downloadservo-8dab4d659aae9fc4954e3a346bd663f60485de31.tar.gz
servo-8dab4d659aae9fc4954e3a346bd663f60485de31.zip
Format style component.
Diffstat (limited to 'components/style/build_gecko.rs')
-rw-r--r--components/style/build_gecko.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs
index c0655628538..1ecc7ec6fc3 100644
--- a/components/style/build_gecko.rs
+++ b/components/style/build_gecko.rs
@@ -322,13 +322,11 @@ mod bindings {
.expect(&format!(
"Unrecognized line in ServoArcTypeList.h: '{}'",
line
- ))
- .get(1)
+ )).get(1)
.unwrap()
.as_str()
.to_string()
- })
- .collect()
+ }).collect()
}
struct BuilderWithConfig<'a> {
@@ -436,8 +434,7 @@ mod bindings {
servo,
if generic { "<T>" } else { "" }
))
- })
- .get_builder();
+ }).get_builder();
write_binding_file(builder, STRUCTS_FILE, &fixups);
}
@@ -553,8 +550,7 @@ mod bindings {
.raw_line(format!(
"pub type {0}Strong = ::gecko_bindings::sugar::ownership::Strong<{0}>;",
ty
- ))
- .borrowed_type(ty)
+ )).borrowed_type(ty)
.zero_size_type(ty, &structs_types);
}
write_binding_file(builder, BINDINGS_FILE, &fixups);