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:
Boris Chiou 2018-10-31 10:58:24 +00:00 committed by Emilio Cobos Álvarez
parent b81bbb85b4
commit 33b2514198
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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();