Skip to content

Commit

Permalink
codegen: Fix a nit I commented on rust-lang#2734.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jan 31, 2024
1 parent 199bee4 commit 8768d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ impl CodeGenerator for CompInfo {
if packed &&
!is_opaque &&
!(explicit_align.is_some() &&
self.already_packed(ctx).map_or(false, |t| t))
self.already_packed(ctx).unwrap_or(false))
{
let n = layout.map_or(1, |l| l.align);
assert!(ctx.options().rust_features().repr_packed_n || n == 1);
Expand Down

0 comments on commit 8768d9d

Please sign in to comment.