From 7db4539726cb4a32d714318e9e03fd0c5ba99ad2 Mon Sep 17 00:00:00 2001 From: Isaac Woods Date: Tue, 5 Mar 2024 23:47:43 +0000 Subject: [PATCH] Fix test utils --- aml/src/test_utils.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/aml/src/test_utils.rs b/aml/src/test_utils.rs index e061687..75e2e6a 100644 --- a/aml/src/test_utils.rs +++ b/aml/src/test_utils.rs @@ -141,15 +141,8 @@ pub(crate) fn crudely_cmp_values(a: &AmlValue, b: &AmlValue) -> bool { AmlValue::String(ref b) => a == b, _ => false, }, - AmlValue::OpRegion { region, offset, length, parent_device } => match b { - AmlValue::OpRegion { - region: b_region, - offset: b_offset, - length: b_length, - parent_device: b_parent_device, - } => { - region == b_region && offset == b_offset && length == b_length && parent_device == b_parent_device - } + AmlValue::OpRegion(_) => match b { + AmlValue::OpRegion(_) => panic!("Can't compare two op-regions"), _ => false, }, AmlValue::Field { region, flags, offset, length } => match b {