(bytes: &[u8])
| 473 | |
| 474 | #[cfg(unix)] |
| 475 | fn path_from_bytes(bytes: &[u8]) -> Result<PathBuf, RepositoryError> { |
| 476 | use std::os::unix::ffi::OsStringExt; |
| 477 | Ok(PathBuf::from(OsString::from_vec(bytes.to_vec()))) |
| 478 | } |
| 479 | |
| 480 | #[cfg(not(unix))] |
| 481 | fn path_from_bytes(bytes: &[u8]) -> Result<PathBuf, RepositoryError> { |