Skip to content

Commit 76a2458

Browse files
committed
Fix a bug with test_issue_940
1 parent 5ce8e45 commit 76a2458

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bindgen/codegen/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,11 @@ impl WithImplicitTemplateParams for RustTy {
479479
ctx: &BindgenContext,
480480
item: &Item,
481481
) -> Self {
482-
let (ty, annotations) = self.into_outer_type();
483-
RustTy::wraps(ty.with_implicit_template_params(ctx, item), annotations)
482+
let (ty, annotation) = self.into_outer_type();
483+
Self {
484+
ty: ty.with_implicit_template_params(ctx, item),
485+
annotation
486+
}
484487
}
485488
}
486489

0 commit comments

Comments
 (0)