Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Sep 23, 2024
1 parent 709dfce commit f7eda88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bitwarden-crypto/src/service/key_store/rust_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ impl<Key: KeyRef> Drop for RustImplKeyData<Key> {
self.data.len() * entry_size,
);

// Note: munlock is zeroing the memory, which leaves the data in an inconsistent state.
// So we need to set it to None again, in case any Drop impl expects the data to be correct.
// Note: munlock is zeroing the memory, which leaves the data in an inconsistent
// state. So we need to set it to None again, in case any Drop impl
// expects the data to be correct.
let uninit_slice: &mut [MaybeUninit<_>] = std::slice::from_raw_parts_mut(
self.data.as_mut_ptr() as *mut MaybeUninit<Option<(Key, Key::KeyValue)>>,
self.data.len(),
Expand Down

0 comments on commit f7eda88

Please sign in to comment.