mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 00:25:49 +03:00
Satisfy linter
This commit is contained in:
parent
804ac35870
commit
1f0fec0f93
@ -742,9 +742,7 @@ impl Atom {
|
||||
if self.is_direct() {
|
||||
Ok(unsafe { self.direct.data() })
|
||||
} else {
|
||||
unsafe {
|
||||
self.indirect.as_u64()
|
||||
}
|
||||
unsafe { self.indirect.as_u64() }
|
||||
}
|
||||
}
|
||||
|
||||
@ -842,7 +840,7 @@ impl Atom {
|
||||
if self.size() <= 2 {
|
||||
let mut u128_array = &mut [0u64; 2];
|
||||
u128_array.copy_from_slice(&(self.as_slice()[0..2]));
|
||||
Ok(unsafe { *u128_array } )
|
||||
Ok(unsafe { *u128_array })
|
||||
} else {
|
||||
Err(Error::NotRepresentable)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user