diff options
| author | bors <bors@rust-lang.org> | 2015-03-16 01:23:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-16 01:23:30 +0000 |
| commit | b1eadf3f1d2a350ed3c5144d69f1c4841e9f5f34 (patch) | |
| tree | 696a06703babcc0f2f08b2cedd4955777697af41 | |
| parent | c62ae87db20cf070c5546f5aa814164d2445ec37 (diff) | |
| parent | b94bcbcdcf89b03a879f9f16f642914d1b55243f (diff) | |
| download | rust-b1eadf3f1d2a350ed3c5144d69f1c4841e9f5f34.tar.gz rust-b1eadf3f1d2a350ed3c5144d69f1c4841e9f5f34.zip | |
Auto merge of #23396 - semarie:remove-sized-bounds, r=sfackler
cc @alexcrichton
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index 904341bfbc3..e7699bbdb38 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -206,7 +206,7 @@ pub fn current_exe() -> io::Result<PathBuf> { if err != 0 { return Err(io::Error::last_os_error()); } if sz == 0 { return Err(io::Error::last_os_error()); } v.set_len(sz as uint - 1); // chop off trailing NUL - Ok(PathBuf::new::<OsString>(&OsStringExt::from_vec(v))) + Ok(PathBuf::new::<OsString>(OsStringExt::from_vec(v))) } } @@ -232,7 +232,7 @@ pub fn current_exe() -> io::Result<PathBuf> { Err(io::Error::last_os_error()) } else { let vec = CStr::from_ptr(v).to_bytes().to_vec(); - Ok(PathBuf::new::<OsString>(&OsStringExt::from_vec(vec))) + Ok(PathBuf::new::<OsString>(OsStringExt::from_vec(vec))) } } } |
