noun: fix DirectAtom::as_bytes()

This commit is contained in:
Matthew LeVan 2023-10-10 13:45:11 -04:00
parent fcbb04b437
commit 760e20e844

View File

@ -188,7 +188,7 @@ impl DirectAtom {
}
pub fn as_bytes(&self) -> &[u8] {
let bytes: &[u8; 8] = unsafe { std::mem::transmute(self.0) };
let bytes: &[u8; 8] = unsafe { std::mem::transmute(&self.0) };
&bytes[..]
}
}