(path: &Path)
| 760 | |
| 761 | #[cfg(unix)] |
| 762 | fn read_link_bytes(path: &Path) -> std::io::Result<Vec<u8>> { |
| 763 | use std::os::unix::ffi::OsStrExt; |
| 764 | fs::read_link(path).map(|target| target.as_os_str().as_bytes().to_vec()) |
| 765 | } |
| 766 | |
| 767 | #[cfg(not(unix))] |
| 768 | fn read_link_bytes(_path: &Path) -> std::io::Result<Vec<u8>> { |
no test coverage detected