summaryrefslogtreecommitdiff
path: root/bindgen/callbacks.rs
diff options
context:
space:
mode:
authorChristian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com>2022-11-28 14:01:25 -0500
committerGitHub <noreply@github.com>2022-11-28 14:01:25 -0500
commita9d41985313f2f4e35a15fe1a94724fb373d051c (patch)
tree887a8f73b6a3bd88ea516c0b10abd5a3e0885699 /bindgen/callbacks.rs
parent199dfcc8e598ba834f7a7210a6ce004e99499d4f (diff)
Document callback changes and avoid static lifetime (#2366)
Diffstat (limited to 'bindgen/callbacks.rs')
-rw-r--r--bindgen/callbacks.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/bindgen/callbacks.rs b/bindgen/callbacks.rs
index 1e48a302..cba406cb 100644
--- a/bindgen/callbacks.rs
+++ b/bindgen/callbacks.rs
@@ -32,7 +32,10 @@ pub trait ParseCallbacks: fmt::Debug {
/// This function will run for every extern variable and function. The returned value determines
/// the name visible in the bindings.
- fn generated_name_override(&self, _item_info: ItemInfo) -> Option<String> {
+ fn generated_name_override(
+ &self,
+ _item_info: ItemInfo<'_>,
+ ) -> Option<String> {
None
}