Skip to content

Commit 0b02021

Browse files
committed
fix
1 parent 32e5ed4 commit 0b02021

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/core/src/ptr/alignment.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ impl const Default for Alignment {
241241
}
242242

243243
#[cfg(target_pointer_width = "16")]
244-
#[derive_const(Copy, Clone, PartialEq, Eq)]
244+
#[derive(Clone)]
245+
#[derive_const(Clone, PartialEq, Eq)]
245246
#[repr(u16)]
246247
enum AlignmentEnum {
247248
_Align1Shl0 = 1 << 0,
@@ -263,7 +264,8 @@ enum AlignmentEnum {
263264
}
264265

265266
#[cfg(target_pointer_width = "32")]
266-
#[derive_const(Copy, Clone, PartialEq, Eq)]
267+
#[derive(Clone)]
268+
#[derive_const(Clone, PartialEq, Eq)]
267269
#[repr(u32)]
268270
enum AlignmentEnum {
269271
_Align1Shl0 = 1 << 0,

0 commit comments

Comments
 (0)