mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 09:06:23 +03:00
noun: fix DirectAtom::as_bytes()
This commit is contained in:
parent
fcbb04b437
commit
760e20e844
@ -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[..]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user