Преглед изворни кода

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,