Skip to content

Commit 24da2c2

Browse files
committed
Fix more compile errors
1 parent a243224 commit 24da2c2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

crates/mac_core/src/dict.rs

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

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

@@ -120,7 +120,7 @@ mod tests {
120120
let three = CFString::new("3");
121121
let four = CFString::new("4");
122122

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

crates/mac_core/src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod tests {
3535
#[test]
3636
fn test_new() {
3737
// Ensure empty and with-value set construction don't segfault
38-
let _ = CFSet::new(&[]);
38+
let _ = CFSet::<CFString>::new(&[]);
3939
let _ = CFSet::new(&[CFString::new("foo")]);
4040
}
4141
}

crates/mac_core/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ mod tests {
189189
assert_eq!(str.as_str(), Cow::Borrowed("foo"));
190190

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

195195
#[test]
196196
fn test_as_cstr() {
197197
let str = CFString::new("foo");
198-
assert_eq!(str.as_cstr(), Cow::Owned(c"foo".to_owned()));
198+
assert_eq!(str.as_cstr(), Cow::<CStr>::Owned(c"foo".to_owned()));
199199

200200
let cstr = CFString::new(c"foo");
201201
assert_eq!(cstr.as_cstr(), Cow::Borrowed(c"foo"));

0 commit comments

Comments
 (0)