We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199bee4 commit 66328b2Copy full SHA for 66328b2
bindgen/codegen/mod.rs
@@ -2203,7 +2203,7 @@ impl CodeGenerator for CompInfo {
2203
if packed &&
2204
!is_opaque &&
2205
!(explicit_align.is_some() &&
2206
- self.already_packed(ctx).map_or(false, |t| t))
+ self.already_packed(ctx).unwrap_or(false))
2207
{
2208
let n = layout.map_or(1, |l| l.align);
2209
assert!(ctx.options().rust_features().repr_packed_n || n == 1);
0 commit comments