diff options
author | Mike Hommey <mh+mozilla@glandium.org> | 2023-08-15 00:58:26 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-08-16 17:46:41 +0200 |
commit | 7bc667f6b47cf7a4dcc1e7cf77b0d66ddf2f59cc (patch) | |
tree | ec085dc1992c00fa0e8e477d6482649626d2e856 /components/style/build_gecko.rs | |
parent | c0ecfde11cca4a684526a795da42dd38da3d5c85 (diff) | |
download | servo-7bc667f6b47cf7a4dcc1e7cf77b0d66ddf2f59cc.tar.gz servo-7bc667f6b47cf7a4dcc1e7cf77b0d66ddf2f59cc.zip |
style: Fix warnings about whitelist/blocklist functions being deprecated in bindgen 0.59
Differential Revision: https://phabricator.services.mozilla.com/D147695
Diffstat (limited to 'components/style/build_gecko.rs')
-rw-r--r-- | components/style/build_gecko.rs | 6 |
1 files 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(); |