Test fixes and rebase conflicts, round 1
This commit is contained in:
parent
7d07f70ccb
commit
04e667a6b1
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ fn path_relative_from(path: &Path, base: &Path) -> Option<PathBuf> {
|
||||||
|
|
||||||
if path.is_absolute() != base.is_absolute() {
|
if path.is_absolute() != base.is_absolute() {
|
||||||
if path.is_absolute() {
|
if path.is_absolute() {
|
||||||
Some(PathBuf::new(path))
|
Some(PathBuf::from(path))
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ use error::Error;
|
||||||
use ffi::{OsString, AsOsStr};
|
use ffi::{OsString, AsOsStr};
|
||||||
use fmt;
|
use fmt;
|
||||||
use io;
|
use io;
|
||||||
use path::{self, Path, PathBuf};
|
use path::{Path, PathBuf};
|
||||||
use sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT, Ordering};
|
use sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT, Ordering};
|
||||||
use sync::{StaticMutex, MUTEX_INIT};
|
use sync::{StaticMutex, MUTEX_INIT};
|
||||||
use sys::os as os_imp;
|
use sys::os as os_imp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue