Skip to content

Commit a8f5236

Browse files
committed
Fix some issues
1 parent bdb805b commit a8f5236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/tests/borrow.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use std::borrow::Cow;
12-
use std::path::PathBuf;
12+
use std::path::{Path, PathBuf};
1313
use std::ffi::{CStr, CString, OSStr, OSString};
1414

1515
#[test]
@@ -27,8 +27,8 @@ fn test_cow_from() {
2727
assert_eq!(Cow::from(v), Cow::Owned(VALUES.iter().collect::<Vec<_>>()));
2828

2929
let p = PathBuf::new();
30-
assert_eq!(Cow::from(&p), Cow::Borrowed(p.as_path()));
31-
assert_eq!(Cow::from(v.as_path()), Cow::Borrowed(p.as_path()));
30+
assert_eq!(Cow::from(&p), Cow::Borrowed(Path::new("")));
31+
assert_eq!(Cow::from(p.as_path()), Cow::Borrowed(Path::new("")));
3232

3333
let cstring = CString::new(MSG);
3434
let cstr = {

0 commit comments

Comments
 (0)