Skip to content

Commit 95802b1

Browse files
committed
---
yaml --- r: 187818 b: refs/heads/tmp c: 357b41b h: refs/heads/master v: v3
1 parent 6240573 commit 95802b1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: d54ed567e0714f6fac91b2f7f204a48a059b0f9f
37+
refs/heads/tmp: 357b41bfcfcfd902d842a20f2c5858b8e196495d
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/tmp/src/libstd/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ mod tests {
927927
fn split_paths_windows() {
928928
fn check_parse(unparsed: &str, parsed: &[&str]) -> bool {
929929
split_paths(unparsed).collect::<Vec<_>>() ==
930-
parsed.iter().map(|s| Path::new(*s)).collect::<Vec<_>>()
930+
parsed.iter().map(|s| PathBuf::new(*s)).collect::<Vec<_>>()
931931
}
932932

933933
assert!(check_parse("", &mut [""]));

branches/tmp/src/test/run-pass/env-home-dir.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ fn main() {
3737
assert!(home_dir().is_some());
3838

3939
set_var("HOME", "/home/MountainView");
40-
assert!(home_dir() == Some(Path::new("/home/MountainView")));
40+
assert!(home_dir() == Some(PathBuf::new("/home/MountainView")));
4141

4242
remove_var("HOME");
4343

4444
set_var("USERPROFILE", "/home/MountainView");
45-
assert!(home_dir() == Some(Path::new("/home/MountainView")));
45+
assert!(home_dir() == Some(PathBuf::new("/home/MountainView")));
4646

4747
set_var("HOME", "/home/MountainView");
4848
set_var("USERPROFILE", "/home/PaloAlto");
49-
assert!(home_dir() == Some(Path::new("/home/MountainView")));
49+
assert!(home_dir() == Some(PathBuf::new("/home/MountainView")));
5050
}

0 commit comments

Comments
 (0)