Skip to content

Commit a243224

Browse files
committed
Fix compile again
1 parent 1b8fbc0 commit a243224

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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"));
192+
assert_eq!(non_str.as_str(), Cow::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"));
198+
assert_eq!(str.as_cstr(), Cow::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)