We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5ca4e7 commit eec4ae1Copy full SHA for eec4ae1
src/codegen/mod.rs
@@ -2228,7 +2228,7 @@ impl<'a> EnumBuilder<'a> {
2228
self,
2229
ctx: &BindgenContext,
2230
variant: &EnumVariant,
2231
- mangling_prefix: Option<&String>,
+ mangling_prefix: Option<&str>,
2232
rust_ty: quote::Tokens,
2233
result: &mut CodegenResult<'b>,
2234
) -> Self {
@@ -2548,9 +2548,9 @@ impl CodeGenerator for Enum {
2548
2549
let constant_mangling_prefix = if ctx.options().prepend_enum_name {
2550
if enum_ty.name().is_none() {
2551
- parent_canonical_name.as_ref().map(|n| &*n)
+ parent_canonical_name.as_ref().map(|n| &**n)
2552
} else {
2553
- Some(&name)
+ Some(&*name)
2554
}
2555
2556
None
0 commit comments