Skip to content

Commit 5353301

Browse files
committed
fix error
1 parent 9fe51df commit 5353301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/array/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ mod default_impls {
402402
assert_eq!(std::mem::size_of::<[(); N]>(), 0);
403403
// SAFETY: it is always valid to use `zeroed` for zero-sized value.
404404
let arr: [(); N] = unsafe { std::mem::zeroed() };
405-
arr.map(DefaultHack::default_hack)
405+
arr.map(|_unit| DefaultHack::default_hack())
406406
}
407407
}
408408
}

0 commit comments

Comments
 (0)