|
@@ -494,14 +494,14 @@ impl fmt::Display for ParseError {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#[cfg(unix)]
|
|
#[cfg(unix)]
|
|
|
-fn os_str_to_bytes<'b>(s: &'b OsStr) -> &'b [u8]{
|
|
|
|
|
|
|
+fn os_str_to_bytes(s: &OsStr) -> &[u8]{
|
|
|
use std::os::unix::ffi::OsStrExt;
|
|
use std::os::unix::ffi::OsStrExt;
|
|
|
|
|
|
|
|
return s.as_bytes()
|
|
return s.as_bytes()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#[cfg(unix)]
|
|
#[cfg(unix)]
|
|
|
-fn bytes_to_os_str<'b>(b: &'b [u8]) -> &'b OsStr{
|
|
|
|
|
|
|
+fn bytes_to_os_str(b: &[u8]) -> &OsStr{
|
|
|
use std::os::unix::ffi::OsStrExt;
|
|
use std::os::unix::ffi::OsStrExt;
|
|
|
|
|
|
|
|
return OsStr::from_bytes(b);
|
|
return OsStr::from_bytes(b);
|