File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -643,11 +643,19 @@ impl Builder {
643
643
/// Whitelist the given function so that it (and all types that it
644
644
/// transitively refers to) appears in the generated bindings. Regular
645
645
/// expressions are supported.
646
- pub fn whitelisted_function < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
646
+ pub fn whitelist_function < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
647
647
self . options . whitelisted_functions . insert ( arg) ;
648
648
self
649
649
}
650
650
651
+ /// Whitelist the given function.
652
+ ///
653
+ /// Deprecated: use whitelist_function instead.
654
+ #[ deprecated = "use whitelist_function instead" ]
655
+ pub fn whitelisted_function < T : AsRef < str > > ( self , arg : T ) -> Builder {
656
+ self . whitelist_function ( arg)
657
+ }
658
+
651
659
/// Whitelist the given variable so that it (and all types that it
652
660
/// transitively refers to) appears in the generated bindings. Regular
653
661
/// expressions are supported.
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ where
473
473
474
474
if let Some ( whitelist) = matches. values_of ( "whitelist-function" ) {
475
475
for regex in whitelist {
476
- builder = builder. whitelisted_function ( regex) ;
476
+ builder = builder. whitelist_function ( regex) ;
477
477
}
478
478
}
479
479
You can’t perform that action at this time.
0 commit comments