diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-27 10:53:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 10:53:24 +0100 |
commit | d5ca4e7e90a3a5ebfeff1041c7eaeb7596d9c1a5 (patch) | |
tree | 79fcef4362d703720ed6066d02e131e0ddb1b5d2 | |
parent | 3379a90a2d88c7d6333d64fe33ea1bd992904c71 (diff) | |
parent | 5c895698c7defb713436709a167b0cc402b109b2 (diff) |
Merge pull request #1264 from emilio/deprecated-proper. r=fitzgen
lib: Use #[deprecated] properly.
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -673,7 +673,7 @@ impl Builder { /// Hide the given type from the generated bindings. Regular expressions are /// supported. - #[deprecated = "Use blacklist_type instead"] + #[deprecated(note = "Use blacklist_type instead")] pub fn hide_type<T: AsRef<str>>(self, arg: T) -> Builder { self.blacklist_type(arg) } @@ -695,7 +695,7 @@ impl Builder { /// Whitelist the given type so that it (and all types that it transitively /// refers to) appears in the generated bindings. Regular expressions are /// supported. - #[deprecated = "use whitelist_type instead"] + #[deprecated(note = "use whitelist_type instead")] pub fn whitelisted_type<T: AsRef<str>>(self, arg: T) -> Builder { self.whitelist_type(arg) } @@ -719,7 +719,7 @@ impl Builder { /// Whitelist the given function. /// /// Deprecated: use whitelist_function instead. - #[deprecated = "use whitelist_function instead"] + #[deprecated(note = "use whitelist_function instead")] pub fn whitelisted_function<T: AsRef<str>>(self, arg: T) -> Builder { self.whitelist_function(arg) } @@ -735,7 +735,7 @@ impl Builder { /// Whitelist the given variable. /// /// Deprecated: use whitelist_var instead. - #[deprecated = "use whitelist_var instead"] + #[deprecated(note = "use whitelist_var instead")] pub fn whitelisted_var<T: AsRef<str>>(self, arg: T) -> Builder { self.whitelist_var(arg) } |