浏览代码

Fix use of TryFrom impl of AccessSize

Isaac Woods 4 年之前
父节点
当前提交
bc201e2c64
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      acpi/src/platform/address.rs

+ 1 - 1
acpi/src/platform/address.rs

@@ -98,7 +98,7 @@ impl GenericAddress {
             address_space,
             bit_width: raw.bit_width,
             bit_offset: raw.bit_offset,
-            access_size: raw.access_size.into(),
+            access_size: AccessSize::try_from(raw.access_size)?,
             address: raw.address,
         })
     }