Skip to content

Commit 1b4bb64

Browse files
committed
Rebase and fix
1 parent e12ed33 commit 1b4bb64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/mac_core/src/array.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ mod tests {
8484

8585
let arr = CFArray::new(&[foo.clone(), bar.clone()]);
8686

87-
assert_eq!(arr[0].as_type_ref(), foo.as_type_ref());
88-
assert_eq!(arr[1].as_type_ref(), bar.as_type_ref());
89-
assert_eq!(arr[0].as_str(), "foo");
90-
assert_eq!(arr[1].as_str(), "bar");
87+
assert_eq!(arr.get(0).as_type_ref(), foo.as_type_ref());
88+
assert_eq!(arr.get(1).as_type_ref(), bar.as_type_ref());
89+
assert_eq!(arr.get(0).as_str(), "foo");
90+
assert_eq!(arr.get(1).as_str(), "bar");
9191
}
9292

9393
#[test]

0 commit comments

Comments
 (0)