1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

Fix build

This commit is contained in:
Bernd Schoolmann
2025-06-14 02:40:09 +02:00
parent 4939ad0606
commit 9ec28799af

View File

@@ -86,7 +86,7 @@ impl SecureMemoryStore for DpapiSecretKVStore {
}
fn remove(&mut self, key: &str) {
if let Some(value) = self.map.remove(key) {
if let Some(mut value) = self.map.remove(key) {
unsafe {
std::ptr::write_bytes(value.as_mut_ptr(), 0, value.len());
}
@@ -94,7 +94,7 @@ impl SecureMemoryStore for DpapiSecretKVStore {
}
fn clear(&mut self) {
for (_, value) in self.map.drain() {
for (_, mut value) in self.map.drain() {
unsafe {
std::ptr::write_bytes(value.as_mut_ptr(), 0, value.len());
}