Skip to content

Commit 7db4539

Browse files
committed
Fix test utils
1 parent abfd649 commit 7db4539

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

aml/src/test_utils.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,8 @@ pub(crate) fn crudely_cmp_values(a: &AmlValue, b: &AmlValue) -> bool {
141141
AmlValue::String(ref b) => a == b,
142142
_ => false,
143143
},
144-
AmlValue::OpRegion { region, offset, length, parent_device } => match b {
145-
AmlValue::OpRegion {
146-
region: b_region,
147-
offset: b_offset,
148-
length: b_length,
149-
parent_device: b_parent_device,
150-
} => {
151-
region == b_region && offset == b_offset && length == b_length && parent_device == b_parent_device
152-
}
144+
AmlValue::OpRegion(_) => match b {
145+
AmlValue::OpRegion(_) => panic!("Can't compare two op-regions"),
153146
_ => false,
154147
},
155148
AmlValue::Field { region, flags, offset, length } => match b {

0 commit comments

Comments
 (0)