From 7bc667f6b47cf7a4dcc1e7cf77b0d66ddf2f59cc Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 15 Aug 2023 00:58:26 +0200 Subject: [PATCH] style: Fix warnings about whitelist/blocklist functions being deprecated in bindgen 0.59 Differential Revision: https://phabricator.services.mozilla.com/D147695 --- components/style/build_gecko.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 9c411b3ddb2..538b641d706 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -285,11 +285,11 @@ fn generate_structs() { let mut fixups = vec![]; let builder = BuilderWithConfig::new(builder, CONFIG["structs"].as_table().unwrap()) .handle_common(&mut fixups) - .handle_str_items("whitelist-functions", |b, item| b.allowlist_function(item)) + .handle_str_items("allowlist-functions", |b, item| b.allowlist_function(item)) .handle_str_items("bitfield-enums", |b, item| b.bitfield_enum(item)) .handle_str_items("rusty-enums", |b, item| b.rustified_enum(item)) - .handle_str_items("whitelist-vars", |b, item| b.allowlist_var(item)) - .handle_str_items("whitelist-types", |b, item| b.allowlist_type(item)) + .handle_str_items("allowlist-vars", |b, item| b.allowlist_var(item)) + .handle_str_items("allowlist-types", |b, item| b.allowlist_type(item)) .handle_str_items("opaque-types", |b, item| b.opaque_type(item)) .handle_table_items("cbindgen-types", |b, item| { let gecko = item["gecko"].as_str().unwrap();