Satisfy linter

This commit is contained in:
Sigilante 2023-11-15 15:36:12 -06:00 committed by GitHub
parent 804ac35870
commit 1f0fec0f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}