Skip to content

Commit

Permalink
Fix variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 21, 2024
1 parent 68c3ee7 commit a799531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/ir/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ impl Item {

match *self.kind() {
ItemKind::Var(ref var) => var.name().to_owned(),
ItemKind::MacroDef(ref var) => var.name().to_owned(),
ItemKind::MacroDef(ref macro_def) => macro_def.name().to_owned(),
ItemKind::Module(ref module) => {
module.name().map(ToOwned::to_owned).unwrap_or_else(|| {
format!("_bindgen_mod_{}", self.exposed_id(ctx))
Expand Down

0 comments on commit a799531

Please sign in to comment.