this was leftover and not does not make sense with the current version of the
Prelude, which is an opaque blob of bytes.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
pub data: Vec<u8>,
}
-impl Prelude {
- pub fn as_os_str(&self) -> &OsStr {
- self.as_ref()
- }
-}
-
impl AsRef<[u8]> for Prelude {
fn as_ref(&self) -> &[u8] {
&self.data
}
}
-impl AsRef<OsStr> for Prelude {
- fn as_ref(&self) -> &OsStr {
- OsStr::from_bytes(&self.data[..self.data.len().max(1) - 1])
- }
-}
-
#[cfg(all(test, target_os = "linux"))]
#[test]
fn test_linux_devices() {