Skip to content

Commit 66328b2

Browse files
committedJan 31, 2024
codegen: Fix a nit I commented on #2734.
1 parent 199bee4 commit 66328b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bindgen/codegen/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ impl CodeGenerator for CompInfo {
22032203
if packed &&
22042204
!is_opaque &&
22052205
!(explicit_align.is_some() &&
2206-
self.already_packed(ctx).map_or(false, |t| t))
2206+
self.already_packed(ctx).unwrap_or(false))
22072207
{
22082208
let n = layout.map_or(1, |l| l.align);
22092209
assert!(ctx.options().rust_features().repr_packed_n || n == 1);

0 commit comments

Comments
 (0)