File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -642,7 +642,15 @@ impl Builder {
642
642
/// Whitelist the given type so that it (and all types that it transitively
643
643
/// refers to) appears in the generated bindings. Regular expressions are
644
644
/// supported.
645
- pub fn whitelisted_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
645
+ #[ deprecated = "use whitelist_type instead" ]
646
+ pub fn whitelisted_type < T : AsRef < str > > ( self , arg : T ) -> Builder {
647
+ self . whitelist_type ( arg)
648
+ }
649
+
650
+ /// Whitelist the given type so that it (and all types that it transitively
651
+ /// refers to) appears in the generated bindings. Regular expressions are
652
+ /// supported.
653
+ pub fn whitelist_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
646
654
self . options . whitelisted_types . insert ( arg) ;
647
655
self
648
656
}
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ where
304
304
}
305
305
if let Some ( hidden_types) = matches. values_of ( "blacklist-type" ) {
306
306
for ty in hidden_types {
307
- builder = builder. hide_type ( ty) ;
307
+ builder = builder. blacklist_type ( ty) ;
308
308
}
309
309
}
310
310
@@ -479,7 +479,7 @@ where
479
479
480
480
if let Some ( whitelist) = matches. values_of ( "whitelist-type" ) {
481
481
for regex in whitelist {
482
- builder = builder. whitelisted_type ( regex) ;
482
+ builder = builder. whitelist_type ( regex) ;
483
483
}
484
484
}
485
485
You can’t perform that action at this time.
0 commit comments