Skip to content

Commit c2c5957

Browse files
committed
More fixes
1 parent 24da2c2 commit c2c5957

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/mac_core/src/dict.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ mod tests {
109109
let three = CFString::new("3");
110110
let four = CFString::new("4");
111111

112-
let _ = CFDictionary::<CFString, CFString>::new([]);
113-
let _ = CFDictionary::new([(one, two), (three, four)]);
112+
let _ = CFDictionary::<CFString, CFString>::new::<[(CFString, CFString); 0]>([]);
113+
let _ = CFDictionary::<CFString, CFString>::new([(one, two), (three, four)]);
114114
}
115115

116116
#[test]
@@ -121,6 +121,6 @@ mod tests {
121121
let four = CFString::new("4");
122122

123123
let _ = CFDictionary::<CFString, CFString>::new(vec![]);
124-
let _ = CFDictionary::new(vec![(one, two), (three, four)]);
124+
let _ = CFDictionary::<CFString, CFString>::new(vec![(one, two), (three, four)]);
125125
}
126126
}

crates/mac_core/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ mod tests {
186186
assert_eq!(str.as_str(), Cow::Borrowed("foo"));
187187

188188
let cstr = CFString::new(c"foo");
189-
assert_eq!(str.as_str(), Cow::Borrowed("foo"));
189+
assert_eq!(cstr.as_str(), Cow::Borrowed("foo"));
190190

191191
let non_str = CFString::new(c"\xC3\x28bar");
192192
assert_eq!(non_str.as_str(), Cow::<str>::Owned("\0\0bar".to_string()));

0 commit comments

Comments
 (0)