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

Remove mut

This commit is contained in:
Bernd Schoolmann
2025-06-14 02:40:32 +02:00
parent 07d33fd35e
commit d283a3c3aa

View File

@@ -26,7 +26,7 @@ impl DpapiSecretKVStore {
}
impl SecureMemoryStore for DpapiSecretKVStore {
fn put(&mut self, key: String, value: &mut [u8]) {
fn put(&mut self, key: String, value: &[u8]) {
let length_header_len = std::mem::size_of::<usize>();
// The allocated data has to be a multiple of CRYPTPROTECTMEMORY_BLOCK_SIZE, so we pad it and write the length in front