solved error: #[derive] can't be used on a non-Copy #[repr(packed)] struct (error E0133)

This commit is contained in:
SeongUk Cho
2017-12-01 21:52:01 +09:00
parent 2e07aab6de
commit dd5f83cd39
+1 -1
View File
@@ -1,7 +1,7 @@
use std::ops::{Deref, DerefMut};
use std::{slice, mem};
#[derive(Debug, Default)]
#[derive(Default)]
#[repr(packed)]
pub struct PciHeader {
pub vendor_id: u16,