From 1254cbf313243e8879a464538a5c78383ba3bc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 3 Sep 2018 14:09:21 +0200 Subject: [PATCH] style: Update style build script for bindgen changes. --- components/style/build_gecko.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 8387f6513a6..c0655628538 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -406,11 +406,7 @@ mod bindings { fn generate_structs() { let builder = Builder::get_initial_builder() .enable_cxx_namespaces() - .with_codegen_config(CodegenConfig { - types: true, - vars: true, - ..CodegenConfig::nothing() - }); + .with_codegen_config(CodegenConfig::TYPES | CodegenConfig::VARS); let mut fixups = vec![]; let builder = BuilderWithConfig::new(builder, CONFIG["structs"].as_table().unwrap()) .handle_common(&mut fixups) @@ -500,10 +496,7 @@ mod bindings { fn generate_bindings() { let builder = Builder::get_initial_builder() .disable_name_namespacing() - .with_codegen_config(CodegenConfig { - functions: true, - ..CodegenConfig::nothing() - }); + .with_codegen_config(CodegenConfig::FUNCTIONS); let config = CONFIG["bindings"].as_table().unwrap(); let mut structs_types = HashSet::new(); let mut fixups = vec![];