mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
style: Drop "mozilla" prefix in cbindgen_types in ServoBindings.toml.
A minor update to drop the redundant "mozilla" namespace prefix in `cbindgen_types` array. Depends on D10305 Differential Revision: https://phabricator.services.mozilla.com/D10325
This commit is contained in:
parent
b81bbb85b4
commit
33b2514198
1 changed files with 2 additions and 2 deletions
|
@ -395,8 +395,8 @@ mod bindings {
|
||||||
.handle_table_items("cbindgen-types", |b, item| {
|
.handle_table_items("cbindgen-types", |b, item| {
|
||||||
let gecko = item["gecko"].as_str().unwrap();
|
let gecko = item["gecko"].as_str().unwrap();
|
||||||
let servo = item["servo"].as_str().unwrap();
|
let servo = item["servo"].as_str().unwrap();
|
||||||
let line = format!("pub use {} as {};", servo, gecko.rsplit("::").next().unwrap());
|
b.blacklist_type(format!("mozilla::{}", gecko))
|
||||||
b.blacklist_type(gecko).module_raw_line("root::mozilla", line)
|
.module_raw_line("root::mozilla", format!("pub use {} as {};", servo, gecko))
|
||||||
})
|
})
|
||||||
.handle_table_items("mapped-generic-types", |builder, item| {
|
.handle_table_items("mapped-generic-types", |builder, item| {
|
||||||
let generic = item["generic"].as_bool().unwrap();
|
let generic = item["generic"].as_bool().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue