chore: Cargo fmt

This commit is contained in:
Karolin Varner
2024-01-21 20:53:16 +01:00
committed by Karolin Varner
parent ca972e8b70
commit 9690085156
9 changed files with 71 additions and 65 deletions

View File

@@ -30,13 +30,7 @@ pub fn xor(src: &[u8]) -> impl To<[u8], ()> + '_ {
#[inline]
pub fn memcmp(a: &[u8], b: &[u8]) -> bool {
a.len() == b.len()
&& unsafe {
memsec::memeq(
a.as_ptr() as *const u8,
b.as_ptr() as *const u8,
a.len(),
)
}
&& unsafe { memsec::memeq(a.as_ptr() as *const u8, b.as_ptr() as *const u8, a.len()) }
}
#[inline]