mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-01 23:32:37 -04:00
Document callback changes and avoid static lifetime (#2366)
This commit is contained in:
committed by
GitHub
parent
f6b05a4053
commit
e16d1aff3f
@@ -156,6 +156,8 @@
|
||||
## Changed
|
||||
* Fixed name collisions when having a C `enum` and a `typedef` with the same
|
||||
name.
|
||||
* The `ParseCallbacks::generated_name_override` now receives `ItemInfo<'_>` as
|
||||
argument instead of a `&str`.
|
||||
|
||||
## Removed
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user