소스 검색

Make PciConfigRegions clonable

Isaac Woods 4 년 전
부모
커밋
df7d29e3a7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      acpi/src/mcfg.rs

+ 1 - 1
acpi/src/mcfg.rs

@@ -7,7 +7,7 @@ use core::{mem, slice};
 /// function of a PCIe device, the `physical_address` method on this will give you the physical
 /// address of the start of that device function's configuration space (each function has 4096
 /// bytes of configuration space in PCIe).
-#[derive(Debug)]
+#[derive(Clone, Debug)]
 pub struct PciConfigRegions {
     regions: Vec<McfgEntry>,
 }