diff --git a/src/lib.rs b/src/lib.rs index dc6409113a..22cdb2add3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -643,11 +643,19 @@ impl Builder { /// Whitelist the given function so that it (and all types that it /// transitively refers to) appears in the generated bindings. Regular /// expressions are supported. - pub fn whitelisted_function>(mut self, arg: T) -> Builder { + pub fn whitelist_function>(mut self, arg: T) -> Builder { self.options.whitelisted_functions.insert(arg); self } + /// Whitelist the given function. + /// + /// Deprecated: use whitelist_function instead. + #[deprecated = "use whitelist_function instead"] + pub fn whitelisted_function>(self, arg: T) -> Builder { + self.whitelist_function(arg) + } + /// Whitelist the given variable so that it (and all types that it /// transitively refers to) appears in the generated bindings. Regular /// expressions are supported. diff --git a/src/options.rs b/src/options.rs index 383a88997e..47d6f33b95 100644 --- a/src/options.rs +++ b/src/options.rs @@ -473,7 +473,7 @@ where if let Some(whitelist) = matches.values_of("whitelist-function") { for regex in whitelist { - builder = builder.whitelisted_function(regex); + builder = builder.whitelist_function(regex); } }