ソースを参照

Implement Copy for packed struct.

Caduser2020 4 年 前
コミット
66c533c67b
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -114,6 +114,7 @@ pub struct BootInformation {
     offset: usize,
 }
 
+#[derive(Clone, Copy)]
 #[repr(C, packed)]
 struct BootInformationInner {
     total_size: u32,