mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Fix warnings about whitelist/blocklist functions being deprecated in bindgen 0.59
Differential Revision: https://phabricator.services.mozilla.com/D147695
This commit is contained in:
parent
c0ecfde11c
commit
7bc667f6b4
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue