1
Fork 0

rollup merge of #23919: alexcrichton/stabilize-io-error

Conflicts:
	src/libstd/fs/tempdir.rs
	src/libstd/io/error.rs
This commit is contained in:
Alex Crichton 2015-03-31 16:18:55 -07:00
commit 50b3ecf3bc
22 changed files with 108 additions and 72 deletions

View file

@ -576,8 +576,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
let to = to.as_ref();
if !from.is_file() {
return Err(Error::new(ErrorKind::InvalidInput,
"the source path is not an existing file",
None))
"the source path is not an existing file"))
}
let mut reader = try!(File::open(from));