We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e12ed33 commit 1b4bb64Copy full SHA for 1b4bb64
1 file changed
crates/mac_core/src/array.rs
@@ -84,10 +84,10 @@ mod tests {
84
85
let arr = CFArray::new(&[foo.clone(), bar.clone()]);
86
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");
+ assert_eq!(arr.get(0).as_type_ref(), foo.as_type_ref());
+ assert_eq!(arr.get(1).as_type_ref(), bar.as_type_ref());
+ assert_eq!(arr.get(0).as_str(), "foo");
+ assert_eq!(arr.get(1).as_str(), "bar");
91
}
92
93
#[test]
0 commit comments