From b94bcbcdcf89b03a879f9f16f642914d1b55243f Mon Sep 17 00:00:00 2001 From: Sébastien Marie Date: Sun, 15 Mar 2015 18:30:43 +0100 Subject: unbreak freebsd/openbsd/bitrig build after #23316 --- src/libstd/sys/unix/os.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index b0ad9ab6937..cf946767b65 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 { 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::(&OsStringExt::from_vec(v))) + Ok(PathBuf::new::(OsStringExt::from_vec(v))) } } @@ -232,7 +232,7 @@ pub fn current_exe() -> io::Result { Err(io::Error::last_os_error()) } else { let vec = CStr::from_ptr(v).to_bytes().to_vec(); - Ok(PathBuf::new::(&OsStringExt::from_vec(vec))) + Ok(PathBuf::new::(OsStringExt::from_vec(vec))) } } } -- cgit 1.4.1-3-g733a5