Skip to content

Commit ea8bd85

Browse files
committed
Fix
1 parent 67fe941 commit ea8bd85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macro/tests/operand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn simple() {
2727

2828
assert_eq!(operation.lhs().unwrap(), block.argument(0).unwrap().into());
2929
assert_eq!(operation.rhs().unwrap(), block.argument(1).unwrap().into());
30-
assert_eq!(operation.operation().operand_count(), 2);
30+
assert_eq!(operation.as_operation().operand_count(), 2);
3131
}
3232

3333
#[test]
@@ -62,6 +62,6 @@ fn variadic_after_single() {
6262
operation.others().nth(1),
6363
Some(block.argument(1).unwrap().into())
6464
);
65-
assert_eq!(operation.operation().operand_count(), 3);
65+
assert_eq!(operation.as_operation().operand_count(), 3);
6666
assert_eq!(operation.others().count(), 2);
6767
}

0 commit comments

Comments
 (0)