Skip to content

Commit 2e16bc5

Browse files
committed
Fix tests for rust beta/nightly
1 parent 513bd39 commit 2e16bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test_path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ fn parse_str(args: &[&str]) -> PathBuf {
1818
#[test]
1919
fn test_path() {
2020
assert_eq!(parse_str(&["./argparse_test", "-s", "/hello"]),
21-
From::from("/hello"));
21+
PathBuf::from("/hello"));
2222
assert_eq!(parse_str(&["./argparse_test", "--set", "a///b/../c"]),
23-
From::from("a/b/../c"));
23+
PathBuf::from("a/b/../c"));
2424
}
2525

2626
#[test]

0 commit comments

Comments
 (0)