浏览代码

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
 /// 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
 /// address of the start of that device function's configuration space (each function has 4096
 /// bytes of configuration space in PCIe).
 /// bytes of configuration space in PCIe).
-#[derive(Debug)]
+#[derive(Clone, Debug)]
 pub struct PciConfigRegions {
 pub struct PciConfigRegions {
     regions: Vec<McfgEntry>,
     regions: Vec<McfgEntry>,
 }
 }