File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -651,11 +651,20 @@ impl Builder {
651
651
/// Whitelist the given variable so that it (and all types that it
652
652
/// transitively refers to) appears in the generated bindings. Regular
653
653
/// expressions are supported.
654
- pub fn whitelisted_var < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
654
+ pub fn whitelist_var < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
655
655
self . options . whitelisted_vars . insert ( arg) ;
656
656
self
657
657
}
658
658
659
+ /// Whitelist the given variable.
660
+ ///
661
+ /// Deprecated: use whitelist_var instead.
662
+ #[ deprecated = "use whitelist_var instead" ]
663
+ pub fn whitelisted_var < T : AsRef < str > > ( self , arg : T ) -> Builder {
664
+ self . whitelist_var ( arg)
665
+ }
666
+
667
+
659
668
/// Mark the given enum (or set of enums, if using a pattern) as being
660
669
/// bitfield-like. Regular expressions are supported.
661
670
///
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ where
485
485
486
486
if let Some ( whitelist) = matches. values_of ( "whitelist-var" ) {
487
487
for regex in whitelist {
488
- builder = builder. whitelisted_var ( regex) ;
488
+ builder = builder. whitelist_var ( regex) ;
489
489
}
490
490
}
491
491
You can’t perform that action at this time.
0 commit comments