Skip to content

Commit 04e667a

Browse files
committed
Test fixes and rebase conflicts, round 1
1 parent 7d07f70 commit 04e667a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_back/rpath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
115115

116116
if path.is_absolute() != base.is_absolute() {
117117
if path.is_absolute() {
118-
Some(PathBuf::new(path))
118+
Some(PathBuf::from(path))
119119
} else {
120120
None
121121
}

src/libstd/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use error::Error;
2323
use ffi::{OsString, AsOsStr};
2424
use fmt;
2525
use io;
26-
use path::{self, Path, PathBuf};
26+
use path::{Path, PathBuf};
2727
use sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT, Ordering};
2828
use sync::{StaticMutex, MUTEX_INIT};
2929
use sys::os as os_imp;

0 commit comments

Comments
 (0)